/* innovaLIS Main Stylesheet */

:root {
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-color: #f9fafb;
    --border-color: #e5e7eb;
}

/* Layout */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #374151;
    background-color: #f9fafb;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-fluid {
    width: 100%;
    padding: 0 1rem;
}

/* Header */
.main-header,
.guest-header,
.v2-header {
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content,
.header-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Sidebar Navigation (v2) */
.layout-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.sidebar-nav {
    height: 100%;
}

.nav-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-item {
    margin: 0.25rem 0;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
    color: #6b7280;
    border-radius: 0.375rem;
    margin: 0 0.5rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background-color: #f3f4f6;
    color: var(--primary-color);
}

.nav-link-danger {
    color: var(--danger-color);
}

.nav-link-danger:hover {
    background-color: #fef2f2;
    color: var(--danger-color);
}

.nav-separator {
    height: 1px;
    background-color: var(--border-color);
    margin: 1rem 0.5rem;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 2rem;
}

.guest-content {
    min-height: calc(100vh - 160px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: #5b21b6;
}

.btn-outline {
    border-color: var(--border-color);
    color: #374151;
    background-color: white;
}

.btn-outline:hover {
    background-color: #f9fafb;
}

/* Alerts */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.alert-warning {
    background-color: #fffbeb;
    border: 1px solid #fed7aa;
    color: #92400e;
}

.default-page {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.actions {
    margin-top: 2rem;
}

/* Footer */
.main-footer,
.guest-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

.footer-content {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .layout-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
        padding: 1rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Guest Layout */
.guest-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.guest-content {
    flex: 1;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* V2 Layout Specific */
.v2-layout .main-content {
    background-color: white;
    border-radius: 0.5rem;
    margin: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}