/*
 * =====================================================
 * HRMS - خدماتي 5dmaty
 * Modern RTL Stylesheet with Cairo Font
 * =====================================================
 */

/* =============== Google Fonts =============== */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800&display=swap');

/* =============== CSS Variables =============== */
:root {
    /* Primary Colors */
    --primary-color: #4A90D9;
    --primary-light: #6BA3E0;
    --primary-dark: #3A7BC8;
    --primary-gradient: linear-gradient(135deg, #4A90D9 0%, #6BA3E0 100%);

    /* Secondary Colors */
    --secondary-color: #6C757D;
    --secondary-light: #868e96;

    /* Status Colors */
    --success-color: #28A745;
    --success-light: #d4edda;
    --warning-color: #FFC107;
    --warning-light: #fff3cd;
    --danger-color: #DC3545;
    --danger-light: #f8d7da;
    --info-color: #17A2B8;
    --info-light: #d1ecf1;

    /* Background Colors */
    --bg-primary: #F8F9FA;
    --bg-secondary: #FFFFFF;
    --bg-dark: #2C3E50;
    --bg-sidebar: #1a252f;

    /* Text Colors */
    --text-primary: #212529;
    --text-secondary: #6C757D;
    --text-muted: #ADB5BD;
    --text-light: #FFFFFF;

    /* Border & Shadow */
    --border-color: #E9ECEF;
    --border-radius: 10px;
    --border-radius-sm: 6px;
    --border-radius-lg: 15px;
    --box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --box-shadow-lg: 0 5px 25px rgba(0, 0, 0, 0.12);
    --box-shadow-hover: 0 8px 30px rgba(74, 144, 217, 0.2);

    /* Sidebar */
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 80px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============== Global Styles =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    direction: rtl;
    scroll-behavior: smooth;
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

/* =============== Typography =============== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* =============== Layout =============== */
.wrapper {
    display: flex;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    margin-right: var(--sidebar-width);
    padding: 20px;
    background-color: var(--bg-primary);
    min-height: 100vh;
    transition: var(--transition-normal);
}

.main-content.collapsed {
    margin-right: var(--sidebar-collapsed-width);
}

/* =============== Sidebar =============== */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-sidebar);
    z-index: 1000;
    transition: var(--transition-normal);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(74, 144, 217, 0.1) 0%, transparent 100%);
}

.sidebar-logo {
    max-width: 60px;
    height: auto;
    margin-bottom: 10px;
    transition: var(--transition-normal);
}

.sidebar.collapsed .sidebar-logo {
    max-width: 40px;
}

.sidebar-brand {
    color: var(--text-light);
    font-size: 1.3rem;
    font-weight: 700;
    display: block;
}

.sidebar.collapsed .sidebar-brand,
.sidebar.collapsed .sidebar-subtitle {
    display: none;
}

.sidebar-subtitle {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 15px 0;
    list-style: none;
}

.sidebar-menu .menu-header {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 20px 10px;
    letter-spacing: 1px;
}

.sidebar.collapsed .menu-header {
    display: none;
}

.sidebar-menu .menu-item {
    margin: 2px 10px;
}

.sidebar-menu .menu-link {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    gap: 12px;
}

.sidebar-menu .menu-link:hover {
    background: rgba(74, 144, 217, 0.15);
    color: var(--text-light);
}

.sidebar-menu .menu-link.active {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.sidebar-menu .menu-link i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar-menu .menu-link span {
    flex: 1;
}

.sidebar.collapsed .menu-link span {
    display: none;
}

.sidebar.collapsed .menu-link {
    justify-content: center;
    padding: 15px;
}

/* =============== Top Navbar =============== */
.top-navbar {
    background: var(--bg-secondary);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.toggle-sidebar {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 5px;
    transition: var(--transition-fast);
}

.toggle-sidebar:hover {
    color: var(--primary-color);
}

.page-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-dropdown {
    position: relative;
}

.user-dropdown .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.user-dropdown .dropdown-toggle:hover {
    background: var(--bg-primary);
}

.user-dropdown .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-dropdown .user-info {
    text-align: right;
}

.user-dropdown .user-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.user-dropdown .user-role {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* =============== Cards =============== */
.card {
    background: var(--bg-secondary);
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    margin-bottom: 25px;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-2px);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-body {
    padding: 25px;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--border-color);
    padding: 15px 25px;
}

/* Stats Cards */
.stat-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--box-shadow);
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 5px;
    height: 100%;
    background: var(--primary-gradient);
}

.stat-card:hover {
    box-shadow: var(--box-shadow-hover);
    transform: translateY(-5px);
}

.stat-card.success::before {
    background: var(--success-color);
}

.stat-card.warning::before {
    background: var(--warning-color);
}

.stat-card.danger::before {
    background: var(--danger-color);
}

.stat-card.info::before {
    background: var(--info-color);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: rgba(74, 144, 217, 0.1);
    color: var(--primary-color);
}

.stat-card.success .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success-color);
}

.stat-card.warning .stat-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning-color);
}

.stat-card.danger .stat-icon {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger-color);
}

.stat-card.info .stat-icon {
    background: rgba(23, 162, 184, 0.1);
    color: var(--info-color);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* =============== Buttons =============== */
.btn {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    padding: 10px 25px;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-fast);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(74, 144, 217, 0.3);
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--text-light);
    box-shadow: 0 6px 20px rgba(74, 144, 217, 0.4);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--text-light);
}

.btn-secondary:hover {
    background: var(--secondary-light);
    color: var(--text-light);
}

.btn-success {
    background: var(--success-color);
    color: var(--text-light);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--text-light);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--text-primary);
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

.btn-sm {
    padding: 6px 15px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1rem;
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* =============== Forms =============== */
.form-control,
.form-select {
    font-family: 'Cairo', sans-serif;
    padding: 12px 18px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    background-color: var(--bg-secondary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.15);
    outline: none;
}

.form-label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

.input-group {
    position: relative;
}

.input-group .form-control {
    padding-right: 50px;
}

.input-group .input-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

/* =============== Tables =============== */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table thead th {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-weight: 600;
    padding: 15px 12px;
    border: none;
    font-size: 0.9rem;
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table tbody td {
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.table tbody tr:hover {
    background: rgba(74, 144, 217, 0.05);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive Table - Card Layout on Mobile */
@media screen and (max-width: 768px) {

    /* إجبار الجدول وعناصره على التصرف كعناصر Block */
    .table,
    .table thead,
    .table tbody,
    .table th,
    .table td,
    .table tr {
        display: block;
    }

    /* إخفاء ترويسة الجدول الأصلية */
    .table thead tr {
        position: absolute;
        top: -9999px;
        right: -9999px;
    }

    /* تنسيق الصف ليظهر كبطاقة */
    .table tbody tr {
        border: 1px solid var(--border-color);
        border-radius: var(--border-radius);
        margin-bottom: 1rem;
        background-color: var(--bg-secondary);
        box-shadow: var(--box-shadow);
        padding: 0.75rem;
        transition: var(--transition-fast);
    }

    .table tbody tr:hover {
        box-shadow: var(--box-shadow-hover);
        transform: translateY(-2px);
    }

    /* تنسيق الخلايا */
    .table tbody td {
        border: none;
        border-bottom: 1px solid var(--border-color);
        position: relative;
        padding: 12px 10px;
        text-align: left;
        display: flex;
        justify-content: space-between;
        align-items: center;
        min-height: 45px;
        gap: 10px;
    }

    .table tbody td:last-child {
        border-bottom: 0;
        justify-content: center;
        padding-top: 15px;
        flex-wrap: wrap;
    }

    /* إنشاء العناوين (Labels) باستخدام CSS */
    .table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--primary-color);
        text-align: right;
        flex-basis: 40%;
        flex-shrink: 0;
        font-size: 0.85rem;
    }

    /* تحسين عرض الأزرار */
    .table tbody td .btn-group,
    .table tbody td .d-flex {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .table tbody td .btn {
        flex: 1;
        min-width: 80px;
        justify-content: center;
    }

    /* تحسين عرض الصور */
    .table tbody td .avatar,
    .table tbody td img {
        margin: 0 auto;
    }

    .table tbody td .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }

    /* إخفاء العناصر غير الضرورية على الموبايل */
    .table .hide-mobile {
        display: none !important;
    }

    /* تحسين البادجات */
    .table tbody td .badge {
        font-size: 0.75rem;
        padding: 5px 10px;
    }

    /* تحسين شريط التقدم */
    .table tbody td .progress {
        width: 100%;
        height: 8px;
    }
}

/* شاشات صغيرة جداً */
@media screen and (max-width: 480px) {
    .table tbody tr {
        padding: 0.5rem;
        margin-bottom: 0.75rem;
    }

    .table tbody td {
        padding: 10px 8px;
        font-size: 0.8rem;
        min-height: 40px;
    }

    .table tbody td::before {
        font-size: 0.8rem;
        flex-basis: 35%;
    }

    .table tbody td .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .table tbody td .avatar,
    .table tbody td .avatar-sm {
        width: 30px;
        height: 30px;
    }
}

/* =============== Badges =============== */
.badge {
    font-family: 'Cairo', sans-serif;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
}

.badge-primary {
    background: rgba(74, 144, 217, 0.15);
    color: var(--primary-color);
}

.badge-success {
    background: rgba(40, 167, 69, 0.15);
    color: var(--success-color);
}

.badge-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #856404;
}

.badge-danger {
    background: rgba(220, 53, 69, 0.15);
    color: var(--danger-color);
}

.badge-info {
    background: rgba(23, 162, 184, 0.15);
    color: var(--info-color);
}

.badge-secondary {
    background: rgba(108, 117, 125, 0.15);
    color: var(--secondary-color);
}

/* =============== Alerts =============== */
.alert {
    padding: 15px 20px;
    border-radius: var(--border-radius-sm);
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: var(--success-light);
    color: var(--success-color);
}

.alert-warning {
    background: var(--warning-light);
    color: #856404;
}

.alert-danger {
    background: var(--danger-light);
    color: var(--danger-color);
}

.alert-info {
    background: var(--info-light);
    color: var(--info-color);
}

/* =============== Modals =============== */
.modal-content {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.modal-header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
}

.modal-title {
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 15px 25px;
}

/* =============== Login Page =============== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-card {
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px;
    text-align: center;
}

.login-logo {
    max-width: 100px;
    margin-bottom: 20px;
}

.login-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.login-subtitle {
    color: var(--text-muted);
    margin-bottom: 30px;
}

.login-form .form-control {
    text-align: right;
}

/* =============== Avatar =============== */
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-sm {
    width: 32px;
    height: 32px;
}

.avatar-lg {
    width: 60px;
    height: 60px;
}

.avatar-xl {
    width: 100px;
    height: 100px;
}

/* =============== Empty State =============== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.empty-state h4 {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-muted);
}

/* =============== To-Do List =============== */
.todo-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    gap: 12px;
}

.todo-item:last-child {
    border-bottom: none;
}

.todo-item.completed .todo-text {
    text-decoration: line-through;
    color: var(--text-muted);
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.todo-text {
    flex: 1;
}

/* =============== Print Styles =============== */
@media print {

    .sidebar,
    .top-navbar,
    .btn,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin: 0 !important;
        padding: 0 !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}

/* =============== Responsive =============== */
@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-right: 0;
    }

    .overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }

    .overlay.active {
        display: block;
    }
}

@media (max-width: 767.98px) {
    .stat-card {
        margin-bottom: 15px;
        padding: 15px;
    }

    .stat-card .stat-value {
        font-size: 1.5rem;
    }

    .stat-card .stat-label {
        font-size: 0.75rem;
    }

    .table-responsive {
        font-size: 0.85rem;
        margin: 0 -15px;
        padding: 0 15px;
    }

    .card-body {
        padding: 15px;
    }

    .card-header {
        padding: 15px;
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .card-title {
        font-size: 1rem;
    }

    .top-navbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 15px;
    }

    .page-title {
        font-size: 1rem;
    }

    .navbar-left {
        width: 100%;
        justify-content: space-between;
    }

    .navbar-left .btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .user-dropdown .user-info {
        display: none;
    }

    /* Modal Responsive */
    .modal-dialog {
        margin: 10px;
    }

    .modal-body {
        padding: 15px;
    }

    .modal-header,
    .modal-footer {
        padding: 12px 15px;
    }

    /* Form Responsive */
    .form-control,
    .form-select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    /* Nav Tabs Responsive */
    .nav-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-tabs .nav-link {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    /* Button Group Responsive */
    .btn-group {
        flex-wrap: wrap;
    }

    /* Row Spacing */
    .row {
        --bs-gutter-x: 10px;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .main-content {
        padding: 10px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-card .stat-value {
        font-size: 1.25rem;
    }

    .card {
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 0.8rem;
    }

    .btn-sm {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* Hide less important columns on very small screens */
    .hide-xs {
        display: none !important;
    }
}

/* =============== Animations =============== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* =============== Scrollbar =============== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* =============== Progress Bar =============== */
.progress {
    height: 8px;
    border-radius: 4px;
    background: var(--bg-primary);
    overflow: hidden;
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* =============== Notification Dropdown =============== */
.notification-dropdown {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 20px;
    height: 20px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* =============== Calendar =============== */
.calendar-day {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition-fast);
}

.calendar-day:hover {
    background: var(--bg-primary);
}

.calendar-day.active {
    background: var(--primary-gradient);
    color: white;
}

.calendar-day.today {
    border: 2px solid var(--primary-color);
}

/* =============== Payslip Print =============== */
.payslip {
    background: white;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.payslip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.payslip-table {
    width: 100%;
    margin-bottom: 20px;
}

.payslip-table th,
.payslip-table td {
    padding: 10px;
    border: 1px solid var(--border-color);
}

.payslip-total {
    background: var(--bg-primary);
    font-weight: 700;
}