@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/icon?family=Material+Icons');

:root {
    --primary: #f26522;
    --secondary: #23235b;
    --accent: #00648d;
    --bg: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    --card-bg: #fff;
    --border-radius: 12px;
    --shadow: 0 8px 32px rgba(0,0,0,0.1);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    color: #333;
}
.container, .dashboard-container {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 280px;
    background: #ffffff;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}
.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
}
.logo-section {
    padding: 24px 20px 20px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
}
.logo-section img {
    height: 40px;
    width: auto;
    filter: brightness(1);
}
nav {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}
nav::-webkit-scrollbar {
    width: 4px;
}
nav::-webkit-scrollbar-track {
    background: transparent;
}
nav::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}
nav a {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 2px 12px;
    border-radius: 12px;
    position: relative;
    letter-spacing: 0.025em;
}
nav a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.9);
    transform: translateX(4px);
}
nav a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    font-weight: 600;
}
nav a.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: #ffffff;
    border-radius: 0 2px 2px 0;
}
nav a span.material-icons {
    margin-right: 14px;
    font-size: 1.25rem;
    opacity: 0.8;
    transition: all 0.3s ease;
}
nav a:hover span.material-icons {
    opacity: 1;
    transform: scale(1.1);
}
.sidebar-footer {
    padding: 20px 24px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.02);
    backdrop-filter: blur(10px);
}
.sidebar-footer a {
    display: flex;
    align-items: center;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    padding: 12px 16px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
}
.sidebar-footer a:hover {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.2);
}
.sidebar-footer a span.material-icons {
    margin-right: 12px;
    font-size: 1.2rem;
    opacity: 0.8;
}
.main-content, .main-area {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}
.top-panel {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 20px 30px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.page-title, .main-title, .top-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}
.user-info, .top-user {
    display: flex;
    align-items: center;
    gap: 10px;
}
.user-name {
    font-weight: 600;
    color: var(--secondary);
}
.content-card, .card, .settings-card {
    background: #fff;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary);
}
.btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn:hover {
    background: var(--secondary);
    transform: translateY(-2px);
}
.btn-secondary {
    background: #6c757d;
}
.btn-danger {
    background: #dc3545;
}
.btn-success {
    background: #28a745;
}
.table-container {
    overflow-x: auto;
}
.data-table, .user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.data-table th, .data-table td, .user-table th, .user-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}
.data-table th, .user-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--secondary);
}
.data-table tr:hover, .user-table tr:hover {
    background: #f8f9fa;
}
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}
.status-active {
    background: #d4edda;
    color: #155724;
}
.status-completed {
    background: #d1ecf1;
    color: #0c5460;
}
.status-overdue {
    background: #f8d7da;
    color: #721c24;
}
.status-cancelled {
    background: #e2e3e5;
    color: #383d41;
}
.alert-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 2px;
}
.alert-reminder {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}
.alert-overdue {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.form-group {
    margin-bottom: 20px;
}
.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--secondary);
}
.form-input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="tel"], input[type="date"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}
.form-input:focus, input:focus {
    outline: none;
    border-color: var(--accent);
}
.form-select, select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #fff;
}
.form-textarea, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 100px;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}
.modal-content {
    background: #fff;
    margin: 5% auto;
    padding: 30px;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 600px;
    box-shadow: var(--shadow);
    max-height: 80vh;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}
.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--secondary);
}
.close {
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
}
.close:hover {
    color: #000;
}
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 30px;
}
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e3e8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #00648d;
    font-weight: 700;
}
.logout-btn, .btn-logout {
    background: #f26522;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    margin-left: 10px;
}
.logout-btn:hover, .btn-logout:hover {
    background: #00648d;
}
.sidebar-section-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 18px 0 6px 36px;
    letter-spacing: 1px;
    opacity: 0.8;
    text-transform: uppercase;
}
.sidebar-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 12px 24px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 8px 12px 4px 12px;
    border-radius: 12px;
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sidebar-section-header:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.8);
}
.sidebar-section-header .section-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.sidebar-section-header .chevron {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: inherit;
    opacity: 0.7;
    font-size: 1.1rem;
}
.sidebar-section-header:hover .chevron {
    opacity: 1;
    transform: scale(1.1);
}
.sidebar-section-content {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
}
.sidebar-section-content.expanded {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
}
.sidebar-section-content a {
    padding: 12px 24px 12px 48px;
    margin: 2px 12px;
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.6);
    background: transparent;
    border-radius: 10px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.sidebar-section-content a:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.9);
    transform: translateX(6px);
}
.sidebar-section-content a.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    color: #667eea;
    border-left: 3px solid #667eea;
    padding-left: 45px;
}
.sidebar-section-content a span.material-icons {
    font-size: 1.1rem;
    margin-right: 12px;
    opacity: 0.7;
}
.sidebar-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.1) 50%, transparent 100%);
    margin: 16px 24px;
    opacity: 0.6;
}
.sidebar-separator.thick {
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.15) 50%, transparent 100%);
    margin: 20px 24px;
    opacity: 0.8;
}
@media (max-width: 1100px) {
    .main-content, .main-area {
        padding: 24px 10px;
    }
    .top-panel {
        padding: 0 10px;
    }
}
@media (max-width: 800px) {
    .container, .dashboard-container {
        flex-direction: column;
        max-width: 100vw;
    }
    .sidebar {
        width: 100%;
        min-height: auto;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 16px;
    }
    nav a {
        margin: 0;
        padding: 10px 16px;
        border-radius: 8px;
        font-size: 0.9rem;
        min-width: auto;
    }
    .sidebar-section-header {
        margin: 4px;
        padding: 10px 16px;
        border-radius: 8px;
    }
    .sidebar-section-content {
        display: none;
    }
    .sidebar-section-content.expanded {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 8px;
        max-height: none;
        opacity: 1;
        transform: none;
    }
    .sidebar-section-content a {
        margin: 0;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.85rem;
    }
    .sidebar-footer {
        padding: 16px;
        text-align: center;
    }
    .sidebar-footer a {
        justify-content: center;
        padding: 10px 20px;
    }
    .main-content, .main-area {
        padding: 24px 10px;
    }
    .top-panel {
        padding: 0 10px;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
} 