* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #d71f26;
    --primary-dark: #a8161c;
    --primary-light: #ef4a50;
    --secondary: #64748b;
    --success: #10b981;
    --success-light: #34d399;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --danger: #b91c1c;
    --danger-light: #f87171;
    --info: #06b6d4;
    --info-light: #22d3ee;
    --purple: #8b5cf6;
    --pink: #ec4899;
    --orange: #f97316;
    --light: #f8fafc;
    --dark: #15171c;
    --charcoal: #1d2026;
    --border: #e2e8f0;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 24px rgba(0,0,0,0.12);
    --gradient-primary: linear-gradient(135deg, #d71f26 0%, #a8161c 100%);
    --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gradient-warning: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    --gradient-danger: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
    --gradient-info: linear-gradient(135deg, #06b6d4 0%, #22d3ee 100%);
}

body {
    font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 56px;
    max-width: 1600px;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.navbar-brand img {
    height: 32px;
    width: auto;
}

.navbar-nav {
    display: flex;
    gap: 2px;
    list-style: none;
    flex-wrap: nowrap;
    align-items: center;
}

.navbar-nav li {
    position: relative;
}

.navbar-nav a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    color: var(--secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 500;
}

.navbar-nav a i {
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.navbar-nav a:hover {
    background: linear-gradient(135deg, rgba(215, 31, 38, 0.08), rgba(215, 31, 38, 0.08));
    color: var(--primary);
}

.navbar-nav a.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(215, 31, 38, 0.3);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-user span {
    color: var(--dark);
    font-size: 13px;
    font-weight: 500;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--light);
    border-radius: 8px;
}

.user-info i {
    color: var(--primary);
}

.user-role {
    font-size: 11px;
    color: var(--secondary);
    font-weight: 400;
}

.lang-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: white;
    color: var(--dark);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
}

.lang-select:hover {
    border-color: var(--primary);
    background: var(--light);
}

.lang-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Notification Button Modern */
.notification-btn {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: white;
    cursor: pointer;
    transition: all 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    background: var(--light);
    border-color: var(--primary);
}

.notification-btn svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

.notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 600;
    background: var(--danger);
    color: white;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn i {
    font-size: 14px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(215, 31, 38, 0.3);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #a8161c 0%, #7f1015 100%);
    box-shadow: 0 6px 20px rgba(215, 31, 38, 0.4);
    transform: translateY(-2px);
}

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

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 2px 4px rgba(34, 197, 94, 0.2);
}

.btn-success:hover {
    box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    box-shadow: 0 4px 8px rgba(239, 68, 68, 0.3);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    border: 1px solid var(--border);
    color: var(--secondary);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(79, 70, 229, 0.04);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--light);
}

.card-header h2 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header h2 i {
    color: var(--primary);
    font-size: 16px;
}

.card-body {
    padding: 20px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 14px;
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 0 4px 4px 0;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--secondary);
    font-size: 12px;
    margin-top: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card.success::before { background: var(--gradient-success); }
.stat-card.warning::before { background: var(--gradient-warning); }
.stat-card.danger::before { background: var(--gradient-danger); }
.stat-card.info::before { background: var(--gradient-info); }

.stat-card.success .stat-value { color: var(--success); }
.stat-card.warning .stat-value { color: var(--warning); }
.stat-card.danger .stat-value { color: var(--danger); }
.stat-card.info .stat-value { color: var(--info); }

/* Tables */
.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    font-weight: 600;
    color: var(--secondary);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--light);
}

tbody tr {
    transition: background 0.15s ease;
}

tbody tr:hover {
    background: rgba(79, 70, 229, 0.02);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* Forms */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.15s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-control::placeholder {
    color: #a1a1aa;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
    cursor: pointer;
}

textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.badge-primary { background: linear-gradient(135deg, #ede9fe, #e0e7ff); color: var(--primary); }
.badge-success { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.badge-warning { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-secondary { background: #f1f5f9; color: var(--secondary); }

/* Priority badges */
.priority-low { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.priority-medium { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.priority-high { background: linear-gradient(135deg, #fed7aa, #fdba74); color: #ea580c; }
.priority-critical { background: linear-gradient(135deg, #fecaca, #fca5a5); color: #dc2626; }

/* Status badges */
.status-todo { background: linear-gradient(135deg, #f1f5f9, #e2e8f0); color: #475569; }
.status-in_progress { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #2563eb; }
.status-review { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.status-done { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.status-active { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.status-completed { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #475569; }
.status-open { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #b45309; }
.status-resolved { background: linear-gradient(135deg, #d1fae5, #a7f3d0); color: #059669; }
.status-closed { background: linear-gradient(135deg, #e2e8f0, #cbd5e1); color: #475569; }
.status-cancelled, .status-expired, .status-suspended { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #b91c1c; }

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--secondary);
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 8px;
    color: var(--primary);
}

.login-card p {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 30px;
}

.login-tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border);
}

.login-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--secondary);
    cursor: pointer;
    position: relative;
}

.login-tab.active {
    color: var(--primary);
}

.login-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
}

/* Page Header */
.page-header {
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    font-size: 1.75rem;
    font-weight: 600;
}

/* Grid Layout */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }

    .navbar .container {
        flex-direction: column;
        height: auto;
        padding: 15px 20px;
    }

    .navbar-nav {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Charts Container */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.chart-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.chart-card h3 {
    margin-bottom: 20px;
    font-size: 1rem;
    color: var(--dark);
}

/* Task item in list */
.task-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.task-item:last-child {
    border-bottom: none;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.task-info {
    flex: 1;
}

.task-title {
    font-weight: 500;
    margin-bottom: 4px;
}

.task-meta {
    font-size: 12px;
    color: var(--secondary);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--secondary);
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    margin-bottom: 8px;
    color: var(--dark);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }

/* Actions column */
.actions {
    display: flex;
    gap: 8px;
}

/* Alert */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* Large Modal */
.modal-lg {
    max-width: 700px;
}

/* Members Grid */
.members-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.member-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--border);
}

.member-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 2px;
}

.member-email {
    font-size: 13px;
    color: var(--secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.member-role {
    margin-left: auto;
    flex-shrink: 0;
}

.member-actions {
    flex-shrink: 0;
}

/* No members state */
.no-members {
    text-align: center;
    padding: 40px 20px;
    color: var(--secondary);
    background: #f8fafc;
    border-radius: 8px;
    border: 2px dashed var(--border);
}

.no-members h4 {
    margin-bottom: 5px;
    color: var(--dark);
}

/* Attachments */
.attachments-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border-radius: 6px;
    margin-bottom: 8px;
}

.attachment-item:last-child {
    margin-bottom: 0;
}

.attachment-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.attachment-info {
    flex: 1;
    min-width: 0;
}

.attachment-name {
    font-weight: 500;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.attachment-size {
    font-size: 12px;
    color: var(--secondary);
}

.attachment-actions {
    display: flex;
    gap: 5px;
    flex-shrink: 0;
}

.file-upload-area {
    display: flex;
    align-items: center;
}

/* Assignees Checkbox List */
.assignees-checkbox-list {
    max-height: 150px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    background: white;
}

.assignee-checkbox-item {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.assignee-checkbox-item:hover {
    background: var(--light);
}

.assignee-checkbox-item input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.assignee-checkbox-item label {
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: var(--dark);
}

.assignees-checkbox-list:empty::after {
    content: "No team members available";
    color: var(--secondary);
    font-size: 13px;
    display: block;
    text-align: center;
    padding: 10px;
}

/* Assignees Cell in Table */
.assignees-cell {
    max-width: 200px;
}

.assignee-badge {
    display: inline-block;
    background: #e0e7ff;
    color: #4338ca;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
    white-space: nowrap;
}

.text-muted {
    color: var(--secondary);
}

/* Notifications */
.navbar-notifications {
    position: relative;
    margin-right: 15px;
}

.notification-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    position: relative;
    transition: background 0.2s;
}

.notification-btn:hover {
    background: var(--light);
}

.notification-btn svg {
    width: 22px;
    height: 22px;
    color: var(--secondary);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 450px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    z-index: 1000;
    overflow: hidden;
}

.notification-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-header h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.notification-header button {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.notification-header button:hover {
    text-decoration: underline;
}

.notification-list {
    max-height: 350px;
    overflow-y: auto;
}

.notification-item {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.notification-item:hover {
    background: var(--light);
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item.unread {
    background: #f0f9ff;
    border-left: 3px solid var(--primary);
}

.notification-item.unread:hover {
    background: #e0f2fe;
}

.notification-icon-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-type-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 14px;
}

.notification-type-icon.task_assigned {
    background: #dbeafe;
    color: #1e40af;
}

.notification-type-icon.task_updated {
    background: #fef3c7;
    color: #92400e;
}

.notification-type-icon.work_log_added {
    background: #dcfce7;
    color: #166534;
}

.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    font-size: 13px;
    color: var(--dark);
    margin-bottom: 3px;
}

.notification-message {
    font-size: 12px;
    color: var(--secondary);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-time {
    font-size: 11px;
    color: var(--secondary);
    margin-top: 5px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--secondary);
}

.notification-empty svg {
    width: 48px;
    height: 48px;
    opacity: 0.3;
    margin-bottom: 10px;
}

.notification-empty p {
    font-size: 13px;
}

/* ==================== AVAILABILITY ==================== */

.availability-container {
    max-width: 1200px;
    margin: 0 auto;
}

.view-toggle {
    display: flex;
    gap: 5px;
    background: var(--light);
    padding: 4px;
    border-radius: 8px;
}

.view-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: var(--secondary);
    transition: all 0.2s;
}

.view-toggle button.active {
    background: white;
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Calendar Styles */
.calendar-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.calendar-header h2 {
    font-size: 1.25rem;
    margin: 0;
}

.calendar-nav {
    display: flex;
    gap: 10px;
}

.calendar-nav button {
    padding: 8px 16px;
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.calendar-nav button:hover {
    background: var(--light);
    border-color: var(--primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-day-header {
    padding: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary);
    background: var(--light);
    border-bottom: 1px solid var(--border);
}

.calendar-day {
    min-height: 100px;
    padding: 8px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: white;
    position: relative;
}

.calendar-day:nth-child(7n) {
    border-right: none;
}

.calendar-day.other-month {
    background: var(--light);
    opacity: 0.5;
}

.calendar-day.today {
    background: #f0f9ff;
}

.calendar-day-number {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 5px;
}

.calendar-day.today .calendar-day-number {
    background: var(--primary);
    color: white;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-events {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.calendar-event {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

.calendar-event:hover {
    opacity: 0.8;
}

/* Availability Type Colors */
.type-sick {
    background: #fef2f2;
    color: #dc2626;
    border-left: 3px solid #dc2626;
}

.type-holiday {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 3px solid #16a34a;
}

.type-emergency {
    background: #fef3c7;
    color: #d97706;
    border-left: 3px solid #d97706;
}

.type-remote {
    background: #eff6ff;
    color: #2563eb;
    border-left: 3px solid #2563eb;
}

.type-training {
    background: #faf5ff;
    color: #9333ea;
    border-left: 3px solid #9333ea;
}

.type-personal {
    background: #f0fdfa;
    color: #0d9488;
    border-left: 3px solid #0d9488;
}

.type-parental {
    background: #fdf2f8;
    color: #db2777;
    border-left: 3px solid #db2777;
}

/* Status Badges */
.status-pending {
    background: #fef3c7;
    color: #d97706;
}

.status-approved {
    background: #dcfce7;
    color: #16a34a;
}

.status-rejected {
    background: #fee2e2;
    color: #dc2626;
}

/* Availability List */
.availability-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    overflow: hidden;
}

.availability-filters {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    padding: 20px;
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

.availability-filters .form-group {
    margin-bottom: 0;
    min-width: 150px;
}

/* Today's Absence Widget */
.today-absences {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.today-absences h3 {
    font-size: 14px;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 15px;
}

.absence-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.absence-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--light);
    border-radius: 8px;
}

.absence-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 12px;
}

.absence-info {
    display: flex;
    flex-direction: column;
}

.absence-name {
    font-weight: 600;
    font-size: 14px;
}

.absence-type {
    font-size: 12px;
    color: var(--secondary);
}

/* Request Modal Specific */
.date-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Legend */
.availability-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 20px;
    background: var(--light);
    border-radius: 8px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

/* ==================== AVAILABILITY WARNINGS IN TASK FORM ==================== */

.assignee-checkbox-item.unavailable {
    background: #fef2f2;
    border-left: 3px solid #dc2626;
}

.assignee-checkbox-item.unavailable label {
    color: #991b1b;
}

.availability-warning {
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    background: #fee2e2;
    color: #dc2626;
    margin-left: auto;
    font-weight: 500;
}

.availability-warning-banner {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 6px;
    padding: 10px 14px;
    margin-top: 10px;
    font-size: 13px;
    color: #92400e;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.availability-warning-banner .warning-icon {
    color: #f59e0b;
    font-size: 16px;
}

.availability-warning-banner.hidden {
    display: none;
}

/* ===== G.E.S.S. identity (brochure 2026): red #d71f26, charcoal #15171c, Barlow ===== */
.navbar {
    border-top: 3px solid var(--primary);
}

.navbar-brand img {
    height: 38px;
}

.page-header h1,
.card-header h2,
.chart-card h3,
.modal-header h3,
.calendar-header h2 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0.01em;
}

.page-header h1 {
    font-size: 2rem;
    text-transform: uppercase;
    position: relative;
    padding-left: 18px;
}

.page-header h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    bottom: 15%;
    width: 5px;
    background: var(--primary);
}

.stat-card .stat-value {
    font-family: var(--font-display);
}

/* Login */
.login-container {
    background:
        linear-gradient(120deg, rgba(21, 23, 28, 0.97) 0%, rgba(29, 32, 38, 0.92) 60%, rgba(168, 22, 28, 0.9) 100%),
        var(--dark);
    flex-direction: column;
    gap: 24px;
    padding: 24px 16px;
}

.login-card {
    border-radius: 4px;
    border-top: 5px solid var(--primary);
    max-width: 420px;
}

.login-logo {
    display: block;
    margin: 0 auto 20px;
    width: 220px;
    max-width: 100%;
    height: auto;
}

.login-card h1 {
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: 1.6rem;
    color: var(--dark);
}

.login-footer {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
}

.login-footer strong {
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: none;
}
