@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:ital,wght@0,100..900;1,100..900&family=Kanit:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    /* Fonts */
    --font-title: 'Hanken Grotesk', sans-serif;
    --font-body: 'Kanit', sans-serif;

    /* Theme Colors (Dark Mode) */
    --bg-main: #0b0f19;
    --bg-card: #131926;
    --bg-hover: #1e2638;
    --border-color: #1f293d;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Brand Colors */
    --color-primary: #328AF1;
    --color-primary-light: #BAD9FC;
    
    /* Secondary Accents */
    --red: #EC454F;
    --pink: #F44381;
    --indigo: #637BFF;
    --cyan: #21C8F6;
    --green: #1AAB8B;
    --teal: #6EDCC4;
    --orange: #F19A1A;
    --yellow: #FFC73C;
    --purple: #8B60ED;
    --violet: #B372BD;
    --navy-blue: #253D63;
    --ice-blue: #A1B6E5;

    /* Spacings */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

/* Layout */
.app-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background-color: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
}

.sidebar-brand {
    height: 75px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.sidebar-brand i {
    font-size: 24px;
    color: var(--color-primary);
}

.sidebar-brand span {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-menu {
    list-style: none;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    font-family: var(--font-title);
    font-weight: 500;
    transition: var(--transition);
}

.sidebar-item a i {
    font-size: 20px;
}

.sidebar-item a:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.sidebar-item.active a {
    background-color: rgba(50, 138, 241, 0.15);
    color: var(--color-primary-light);
    border: 1px solid rgba(50, 138, 241, 0.3);
}

.sidebar-footer {
    padding: 20px 16px;
    border-top: 1px solid var(--border-color);
}

.logout-form button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background-color: rgba(236, 69, 79, 0.1);
    color: var(--red);
    border: 1px solid rgba(236, 69, 79, 0.2);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 600;
    transition: var(--transition);
}

.logout-form button:hover {
    background-color: var(--red);
    color: white;
}

/* Main Content */
.main-wrapper {
    flex-grow: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: calc(100% - 260px);
    min-width: 0; /* Prevents flexbox container expansion past screen limits */
}

/* Header */
.topbar {
    height: 75px;
    background-color: rgba(13, 18, 30, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 99;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sidebar-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-primary);
    transform: scale(1.05);
}

.page-title h1 {
    font-family: var(--font-title);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--text-primary) 0%, rgba(248, 250, 252, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Language Switcher */
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-title);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 30px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn i {
    font-size: 16px;
}

.lang-btn:hover {
    color: var(--color-primary-light);
    border-color: var(--color-primary);
    background: rgba(50, 138, 241, 0.1);
    transform: translateY(-1px);
}

/* User Profile Pill */
.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 6px;
    padding-inline-start: 16px;
    padding-inline-end: 6px;
    border-radius: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.user-profile:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(50, 138, 241, 0.3);
    transform: translateY(-1px);
}

.user-avatar {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--color-primary), var(--indigo));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-title);
    font-weight: 800;
    color: white;
    font-size: 1rem;
    box-shadow: 0 4px 10px rgba(50, 138, 241, 0.25);
}

.user-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}

html[dir="rtl"] .user-info {
    text-align: left;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Content Area */
.content-body {
    padding: 30px;
    flex-grow: 1;
}

/* Alert Notifications */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.alert-success {
    background-color: rgba(26, 171, 139, 0.1);
    border: 1px solid rgba(26, 171, 139, 0.2);
    color: var(--green);
}

.alert-danger {
    background-color: rgba(236, 69, 79, 0.1);
    border: 1px solid rgba(236, 69, 79, 0.2);
    color: var(--red);
}

/* Cards */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.card-title {
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.card-title i {
    color: var(--color-primary);
    font-size: 20px;
}

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

.stat-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(50, 138, 241, 0.3);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px; /* Slightly larger, modern look */
    background: transparent !important;
    border: none !important;
}

.stat-info h3 {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.stat-info p {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: var(--font-title);
    margin-top: 4px;
}

.icon-primary { background: transparent !important; color: #328AF1 !important; text-shadow: 0 0 15px rgba(50, 138, 241, 0.5); }
.icon-green { background: transparent !important; color: #1AAB8B !important; text-shadow: 0 0 15px rgba(26, 171, 139, 0.5); }
.icon-red { background: transparent !important; color: #EC454F !important; text-shadow: 0 0 15px rgba(236, 69, 79, 0.5); }
.icon-yellow { background: transparent !important; color: #FFC73C !important; text-shadow: 0 0 15px rgba(255, 199, 60, 0.5); }
.icon-purple { background: transparent !important; color: #8B60ED !important; text-shadow: 0 0 15px rgba(139, 96, 237, 0.5); }

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

table.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

table.data-table th, 
table.data-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

table.data-table th {
    background-color: rgba(31, 41, 61, 0.3);
    color: var(--text-secondary);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

table.data-table tr:hover td {
    background-color: rgba(30, 38, 56, 0.3);
}

table.data-table tr:last-child td {
    border-bottom: none;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-present { background-color: rgba(26, 171, 139, 0.15); color: var(--teal); border: 1px solid rgba(26, 171, 139, 0.3); }
.badge-absent { background-color: rgba(236, 69, 79, 0.15); color: var(--red); border: 1px solid rgba(236, 69, 79, 0.3); }
.badge-vacation { background-color: rgba(255, 199, 60, 0.15); color: var(--yellow); border: 1px solid rgba(255, 199, 60, 0.3); }
.badge-excused { background-color: rgba(148, 163, 184, 0.15); color: var(--text-secondary); border: 1px solid rgba(148, 163, 184, 0.3); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

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

.btn-primary:hover {
    background-color: #1d7ae4;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(50, 138, 241, 0.3);
}

.btn-secondary {
    background-color: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

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

.btn-danger {
    background-color: rgba(236, 69, 79, 0.1);
    color: var(--red);
    border: 1px solid rgba(236, 69, 79, 0.2);
}

.btn-danger:hover {
    background-color: var(--red);
    color: white;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px; /* Nice readable icon size */
    cursor: pointer;
    transition: var(--transition);
    border-radius: 50%;
}

.btn-icon.btn-secondary {
    color: var(--text-secondary) !important;
}

.btn-icon.btn-secondary:hover {
    color: var(--color-primary-light) !important;
    text-shadow: 0 0 8px rgba(186, 217, 252, 0.5);
    transform: scale(1.25);
}

.btn-icon.btn-danger {
    color: rgba(236, 69, 79, 0.6) !important;
}

.btn-icon.btn-danger:hover {
    color: var(--red) !important;
    text-shadow: 0 0 8px rgba(236, 69, 79, 0.6);
    transform: scale(1.25);
}

/* Forms */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: var(--font-title);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.form-group input, 
.form-group select, 
.form-group textarea,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
input[type="number"],
input[type="date"],
select,
textarea {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15);
}

.form-group input:hover, 
.form-group select:hover, 
.form-group textarea:hover,
input[type="text"]:hover,
input[type="email"]:hover,
input[type="password"]:hover,
input[type="url"]:hover,
input[type="number"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
    border-color: rgba(50, 138, 241, 0.4);
    background: rgba(30, 41, 59, 0.55);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="url"]:focus,
input[type="number"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary);
    background: rgba(30, 41, 59, 0.75);
    box-shadow: 0 0 0 4px rgba(50, 138, 241, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-group input[readonly],
input[readonly] {
    background-color: rgba(30, 41, 59, 0.2);
    border-color: var(--border-color);
    color: var(--text-secondary);
    cursor: not-allowed;
    box-shadow: none;
}

/* Custom Checkbox */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    background: rgba(30, 41, 59, 0.4);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    transition: var(--transition);
    position: relative;
    padding: 0;
    box-shadow: none;
}

input[type="checkbox"]:hover {
    border-color: rgba(50, 138, 241, 0.5);
    background-color: var(--bg-hover);
}

input[type="checkbox"]:checked {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

input[type="checkbox"]::before {
    content: "";
    width: 10px;
    height: 10px;
    transform: scale(0);
    transition: 120ms transform ease-in-out;
    background-color: white;
    clip-path: polygon(14% 44%, 0 58%, 38% 96%, 100% 14%, 86% 0%, 38% 68%);
}

input[type="checkbox"]:checked::before {
    transform: scale(1);
}

/* Custom Select Dropdown Arrow */
/* Custom Select styling is defined at the end of the file */

/* Custom Date Picker Calendar Icon */
input[type="date"]::-webkit-calendar-picker-indicator {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2394a3b8'%3e%3cpath d='M9 1v2h6V1h2v2h4a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h4V1h2zm11 8H4v10h16V9zm-2 2v2h-2v-2h2zm-4 0v2h-2v-2h2zm-4 0v2H6v-2h2z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
    opacity: 0.8;
    transition: var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    transform: scale(1.1);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

/* Weekly Attendance Table */
.weeks-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 20px;
}

.weeks-table th, 
.weeks-table td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.weeks-table th {
    background-color: rgba(31, 41, 61, 0.3);
    color: var(--text-secondary);
    font-weight: 600;
}

.weeks-table td:first-child, 
.weeks-table th:first-child {
    border-left: 1px solid var(--border-color);
}

.weeks-table tr:first-child th {
    border-top: 1px solid var(--border-color);
}

.weeks-table tr:first-child th:first-child {
    border-top-left-radius: var(--radius-md);
}

.weeks-table tr:first-child th:last-child {
    border-top-right-radius: var(--radius-md);
}

.weeks-table tr:last-child td:first-child {
    border-bottom-left-radius: var(--radius-md);
}

.weeks-table tr:last-child td:last-child {
    border-bottom-right-radius: var(--radius-md);
}

.day-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-block;
    position: relative;
    transition: var(--transition);
}

.day-circle:hover .day-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -10px);
}

.circle-present { background-color: var(--green); box-shadow: 0 0 10px rgba(26, 171, 139, 0.5); }
.circle-absent { background-color: var(--red); box-shadow: 0 0 10px rgba(236, 69, 79, 0.5); }
.circle-vacation { background-color: var(--yellow); box-shadow: 0 0 10px rgba(255, 199, 60, 0.5); }
.circle-excused { background-color: var(--text-secondary); box-shadow: 0 0 10px rgba(148, 163, 184, 0.5); }
.circle-none { border: 2px dashed var(--border-color); }

.day-num {
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-secondary);
}

.day-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translate(-50%, 0);
    background-color: #000;
    color: #fff;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.day-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}

/* Animations */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* RTL Specific Layout Overrides */
html[dir="rtl"] {
    text-align: right;
}

html[dir="rtl"] .sidebar {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .main-wrapper {
    margin-left: 0;
    margin-right: 260px;
    width: calc(100% - 260px);
}

html[dir="rtl"] .sidebar-brand i {
    margin-right: 0;
    margin-left: 12px;
}

html[dir="rtl"] .sidebar-item a {
    flex-direction: row;
    gap: 12px;
}

html[dir="rtl"] .logout-form button i {
    margin-right: 0;
    margin-left: 10px;
}

html[dir="rtl"] .user-info {
    text-align: left;
}

html[dir="rtl"] .btn {
    flex-direction: row;
}

html[dir="rtl"] .btn i {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] table.data-table {
    text-align: right;
}

html[dir="rtl"] table.data-table th {
    text-align: right;
}

html[dir="rtl"] .form-actions {
    justify-content: flex-start;
}

html[dir="rtl"] .weeks-table th, 
html[dir="rtl"] .weeks-table td {
    border-right: none;
    border-left: 1px solid var(--border-color);
}

html[dir="rtl"] .weeks-table td:first-child, 
html[dir="rtl"] .weeks-table th:first-child {
    border-left: none;
    border-right: 1px solid var(--border-color);
}

html[dir="rtl"] .day-tooltip::after {
    left: 50%;
    transform: translateX(-50%);
}

html[dir="rtl"] .alert i {
    margin-right: 0;
    margin-left: 12px;
}

/* Responsive & LTR/RTL Support */
@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }
    html[dir="rtl"] .sidebar {
        transform: translateX(100%);
    }
    .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(50, 138, 241, 0.15);
    }
    html[dir="rtl"] .sidebar.open {
        transform: translateX(0);
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(50, 138, 241, 0.15);
    }
    .main-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    html[dir="rtl"] .main-wrapper {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    .topbar {
        padding: 0 20px;
    }
    .sidebar-toggle {
        display: flex;
    }
}

/* Tablet & Mobile Layout Enhancements */
@media (max-width: 768px) {
    .content-body {
        padding: 16px;
    }
    .user-info {
        display: none !important;
    }
    .user-profile {
        padding: 6px !important;
        padding-inline-start: 6px !important;
        padding-inline-end: 6px !important;
    }
}

@media (max-width: 576px) {
    .page-title {
        display: none !important;
    }
    .form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
        gap: 10px;
    }
    .form-actions .btn {
        width: 100%;
    }
    .lang-btn span {
        display: none;
    }
    .lang-btn {
        padding: 8px !important;
        border-radius: 50% !important;
        width: 38px;
        height: 38px;
        justify-content: center;
    }
}



/* Custom Dropdown Styling */
.custom-dropdown {
    position: relative;
    width: 140px;
    user-select: none;
}

.dropdown-trigger {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
}

.dropdown-trigger:hover {
    border-color: rgba(50, 138, 241, 0.4);
    background: rgba(30, 41, 59, 0.55);
}

.custom-dropdown.open .dropdown-trigger {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(50, 138, 241, 0.15);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

.custom-dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-align: left;
}

html[dir="rtl"] .dropdown-item {
    text-align: right;
}

.dropdown-item:hover {
    background-color: var(--bg-hover);
    color: var(--text-primary);
}

.dropdown-item.selected {
    background-color: rgba(50, 138, 241, 0.15);
    color: var(--color-primary-light);
    font-weight: 600;
}

/* Attendance Row Cards Layout */
.attendance-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
}

.attendance-row-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.attendance-row-card:hover {
    border-color: rgba(50, 138, 241, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.attendance-row-card.open-dropdown {
    z-index: 10;
}

.emp-info-block {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 28%;
    min-width: 220px;
}

.emp-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.emp-name {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.emp-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.emp-status-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 22%;
}

.emp-notes-text {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

.emp-notes-text.empty {
    color: rgba(148, 163, 184, 0.3);
}

.emp-action-block {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-grow: 1;
    justify-content: flex-end;
}

.attendance-inline-form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.attendance-inline-form .notes-input {
    width: 200px;
    padding: 9px 14px !important;
    font-size: 0.85rem;
}

.btn-save {
    background: transparent !important;
    border: none !important;
    color: rgba(26, 171, 139, 0.6) !important;
    cursor: pointer;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: var(--transition) !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    box-shadow: none !important;
}

.btn-save:hover {
    background: transparent !important;
    color: var(--green) !important;
    text-shadow: 0 0 10px rgba(26, 171, 139, 0.6);
    transform: scale(1.25);
}

.btn-clear-record {
    background: transparent !important;
    border: none !important;
    color: rgba(236, 69, 79, 0.6) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    box-shadow: none !important;
}

.btn-clear-record:hover {
    background: transparent !important;
    color: var(--red) !important;
    text-shadow: 0 0 10px rgba(236, 69, 79, 0.6);
    transform: scale(1.25);
}

.btn-save .btn-text,
.btn-clear-record .btn-text {
    display: none;
}

/* RTL Row Alignment Adjustments */
html[dir="rtl"] .emp-info-block {
    text-align: right;
}

html[dir="rtl"] .emp-status-block {
    align-items: flex-start;
}

html[dir="rtl"] .emp-action-block {
    justify-content: flex-end;
}

@media (max-width: 991px) {
    .attendance-row-card {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .emp-info-block, .emp-status-block, .emp-action-block {
        width: 100%;
        min-width: 0;
    }
    
    .emp-action-block {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .attendance-inline-form {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    
    .attendance-inline-form .notes-input {
        width: 100%;
    }
    
    .custom-dropdown {
        width: 100%;
    }
    
    .attendance-inline-form .btn-save {
        width: 100% !important;
        height: auto !important;
        padding: 12px !important;
        border-radius: var(--radius-md) !important;
        background-color: var(--green) !important;
        color: white !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .attendance-inline-form .btn-save:hover {
        background-color: #158f74 !important;
        color: white !important;
        transform: none !important;
    }
    
    .attendance-inline-form .btn-save .btn-text {
        display: inline !important;
        font-family: var(--font-title);
        font-weight: 600;
        font-size: 0.9rem;
    }
    
    .emp-action-block .btn-clear-record {
        width: 100% !important;
        height: auto !important;
        padding: 12px !important;
        border-radius: var(--radius-md) !important;
        background-color: rgba(236, 69, 79, 0.1) !important;
        color: var(--red) !important;
        border: 1px solid rgba(236, 69, 79, 0.2) !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }
    
    .emp-action-block .btn-clear-record:hover {
        background-color: var(--red) !important;
        color: white !important;
        transform: none !important;
    }
    
    .emp-action-block .btn-clear-record .btn-text {
        display: inline !important;
        font-family: var(--font-title);
        font-weight: 600;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.2);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
    border: 2px solid transparent;
    background-clip: padding-box;
}

/* Firefox scrollbar support */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.12) rgba(15, 23, 42, 0.2);
}

/* Global Select Box styling for modern premium look */
select {
    background-color: rgba(30, 41, 59, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md) !important;
    padding: 11px 40px 11px 16px !important;
    font-family: var(--font-body) !important;
    font-weight: 500 !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 14px !important;
}

html[dir="rtl"] select {
    background-position: left 16px center !important;
    padding-left: 40px !important;
    padding-right: 16px !important;
}

select::-ms-expand {
    display: none !important;
}

/* Custom styling for options lists globally to prevent native white background clash */
select option {
    background-color: #131926 !important; /* Matches var(--bg-card) dark theme */
    color: var(--text-primary) !important;
    padding: 12px !important;
}

select option:hover,
select option:focus,
select option:active {
    background-color: var(--color-primary) !important;
    color: #ffffff !important;
}

/* Specific adjustment for Flatpickr month dropdown select box */
.flatpickr-monthDropdown-months {
    padding: 4px 28px 4px 10px !important;
    background-position: right 8px center !important;
    background-size: 12px !important;
    font-size: 0.9rem !important;
    margin: 0 4px !important;
}

html[dir="rtl"] .flatpickr-monthDropdown-months {
    background-position: left 8px center !important;
    padding-left: 28px !important;
    padding-right: 10px !important;
}

/* Responsive Reusable Grids */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 24px;
    align-items: start;
}

@media (max-width: 768px) {
    .two-col-grid,
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* Touch Scrolling for tables */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* Salaries Row Card Layout */
.salary-cards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    min-width: 1080px; /* Forces table-responsive to scroll horizontally */
}

.salary-row-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    min-width: 1080px;
}

.salary-row-card:hover {
    border-color: rgba(50, 138, 241, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
}

.salary-emp-block {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 18%;
    min-width: 160px;
}

.salary-expected-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 13%;
    min-width: 110px;
}

.salary-expected-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.salary-expected-value {
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
}

.salary-breakdown-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 17%;
    min-width: 140px;
}

.salary-breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 2px;
}

.salary-breakdown-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.salary-adjustment-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-grow: 1;
}

.salary-adjustment-form input[type="number"] {
    width: 75px;
    padding: 8px 10px !important;
    font-size: 0.85rem;
}

.salary-adjustment-form .notes-input {
    flex-grow: 1;
    min-width: 90px;
    padding: 8px 12px !important;
    font-size: 0.85rem;
}

.salary-net-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 12%;
    min-width: 90px;
}

.net-salary-title {
    font-size: 0.7rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

.net-salary-amount {
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--teal);
    text-shadow: 0 0 10px rgba(26, 171, 139, 0.3);
}

/* RTL Arrow Overrides */
html[dir="rtl"] .ri-arrow-left-line {
    transform: scaleX(-1);
    display: inline-block;
}

/* Premium Salary Action Button Style */
.btn-salary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(50, 138, 241, 0.08);
    border: 1px solid rgba(50, 138, 241, 0.15);
    color: var(--color-primary-light);
    font-size: 1.25rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.btn-salary-action:hover {
    background: rgba(50, 138, 241, 0.2);
    border-color: rgba(50, 138, 241, 0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(50, 138, 241, 0.35), 0 0 12px rgba(50, 138, 241, 0.2);
}

.btn-salary-action:active {
    transform: translateY(0) scale(0.95);
}

/* ============================== */
/*   Reason Modal (Custom CSS)    */
/* ============================== */
.reason-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.reason-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.reason-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(50, 138, 241, 0.08);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.reason-modal-overlay.active .reason-modal {
    transform: scale(1) translateY(0);
}
.reason-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}
.reason-modal-header h4 {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary-light);
}
.reason-modal-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(236, 69, 79, 0.1);
    border: 1px solid rgba(236, 69, 79, 0.2);
    color: var(--red);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.reason-modal-close:hover {
    background: rgba(236, 69, 79, 0.2);
    transform: scale(1.1);
}
.reason-modal-body {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ============================== */
/*   Adjustment Action Buttons    */
/* ============================== */
.btn-adj-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(236, 69, 79, 0.08);
    border: 1px solid rgba(236, 69, 79, 0.15);
    color: var(--red);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-adj-delete:hover {
    background: rgba(236, 69, 79, 0.2);
    border-color: rgba(236, 69, 79, 0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(236, 69, 79, 0.3);
}
.btn-adj-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(50, 138, 241, 0.08);
    border: 1px solid rgba(50, 138, 241, 0.15);
    color: var(--color-primary-light);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}
.btn-adj-info:hover {
    background: rgba(50, 138, 241, 0.2);
    border-color: rgba(50, 138, 241, 0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(50, 138, 241, 0.3);
}

/* Adjustment Type Badges */
.badge-bonus {
    background: rgba(26, 171, 139, 0.12);
    color: var(--green);
    border: 1px solid rgba(26, 171, 139, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}
.badge-deduction {
    background: rgba(236, 69, 79, 0.12);
    color: var(--red);
    border: 1px solid rgba(236, 69, 79, 0.25);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Adjustment form select/input consistent styling */
.adj-form-select {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background-color: var(--bg-body, var(--bg-main));
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    appearance: auto;
}

/* Empty state for adjustments */
.adj-empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 20px;
    font-size: 0.9rem;
}
.adj-empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    opacity: 0.4;
}

/* Working Hours Countdown Widget */
.countdown-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}

.countdown-widget:hover {
    border-color: rgba(50, 138, 241, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* Glassmorphism background light glow */
.countdown-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(50, 138, 241, 0.04) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.countdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-title);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
}

.widget-title i {
    font-size: 24px;
    color: var(--color-primary);
}

/* Badges for states */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: var(--font-title);
    transition: var(--transition);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Active State Badge */
.badge-active {
    background: rgba(26, 171, 139, 0.1);
    color: var(--green);
    border: 1px solid rgba(26, 171, 139, 0.2);
}

.badge-active .pulse-dot {
    background-color: var(--green);
    animation: pulse-green 1.5s infinite;
}

/* Before Shift State Badge */
.badge-before {
    background: rgba(99, 123, 255, 0.1);
    color: var(--indigo);
    border: 1px solid rgba(99, 123, 255, 0.2);
}

.badge-before .pulse-dot {
    background-color: var(--indigo);
    animation: pulse-indigo 1.5s infinite;
}

/* Ended State Badge */
.badge-ended {
    background: rgba(148, 163, 184, 0.1);
    color: var(--text-secondary);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.badge-ended .pulse-dot {
    background-color: var(--text-secondary);
}

/* Holiday State Badge */
.badge-holiday {
    background: rgba(241, 154, 26, 0.1);
    color: var(--orange);
    border: 1px solid rgba(241, 154, 26, 0.2);
}

/* Animations for pulsing dots */
@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 171, 139, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(26, 171, 139, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(26, 171, 139, 0);
    }
}

@keyframes pulse-indigo {
    0% {
        box-shadow: 0 0 0 0 rgba(99, 123, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(99, 123, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(99, 123, 255, 0);
    }
}

/* Countdown Body layout */
.countdown-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* Countdown Timer Grid */
.countdown-timer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.timer-num {
    font-family: var(--font-title);
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: var(--radius-md);
    min-width: 75px;
    text-align: center;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: 0.05em;
    font-variant-numeric: tabular-nums;
}

.timer-separator {
    font-family: var(--font-title);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-secondary);
    animation: blink 1s infinite;
}

@keyframes blink {
    5% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.timer-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 700;
    text-transform: uppercase;
}

/* Details list side */
.countdown-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex-grow: 1;
    max-width: 320px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.detail-value {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Progress bar container */
.countdown-progress-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
}

.progress-bar-bg {
    height: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--cyan) 100%);
    border-radius: var(--radius-sm);
    transition: width 1s ease-in-out;
}

[dir="rtl"] .progress-bar-fill {
    background: linear-gradient(270deg, var(--color-primary) 0%, var(--cyan) 100%);
}

/* Holiday state styles */
.holiday-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.holiday-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(241, 154, 26, 0.1);
    border: 1px solid rgba(241, 154, 26, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--orange);
}

.holiday-info h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.holiday-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .countdown-body {
        flex-direction: column;
        align-items: stretch;
    }
    .countdown-details {
        max-width: 100%;
    }
}
