body {
    font-family: "Gulzar", sans-serif;
    font-weight: 600;
    font-style: normal;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="search"],
input[type="url"],
textarea,
select {
    font-family: sans-serif;
}

:root {
    --primary-color: #4e73df;
    --secondary-color: #858796;
    --success-color: #8000ff;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --sidebar-purple: #8000ff;
    --sidebar-dark: #5a189a;
}

/* Main container with sidebar */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Main Content Area (75%) */
.main-content {
    flex: 0 0 75%;
    max-width: 75%;
    padding: 20px;
    transition: all 0.3s ease;
}

/* Sidebar Area (25%) */
.sidebar-right {
    flex: 0 0 25%;
    max-width: 25%;
    background: linear-gradient(135deg, var(--sidebar-purple) 0%, var(--sidebar-dark) 100%);
    color: white;
    padding: 0;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

/* Sidebar Header */
.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    background: rgba(0, 0, 0, 0.1);
}

.sidebar-header h3 {
    margin: 0;
    font-weight: 700;
    font-size: 1.5rem;
}

.sidebar-header p {
    opacity: 0.8;
    margin-top: 5px;
    font-size: 0.9rem;
}

/* Sidebar Menu */
.sidebar-menu {
    padding: 20px 0;
}

.sidebar-item {
    padding: 12px 25px;
    margin: 5px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(-5px);
}

.sidebar-item.active {
    background: rgba(255, 255, 255, 0.2);
    border-right: 4px solid white;
}

.sidebar-item i {
    font-size: 1.2rem;
    width: 25px;
    text-align: center;
}

.sidebar-item span {
    font-weight: 500;
}

/* Sidebar Stats */
.sidebar-stats {
    padding: 20px;
    background: rgba(0, 0, 0, 0.15);
    margin: 20px 15px;
    border-radius: 10px;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.stat-label {
    opacity: 0.9;
}

.stat-value {
    font-weight: 700;
    font-size: 1.1rem;
}

/* Sidebar Footer */
.sidebar-footer {
    padding: 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--sidebar-purple) 0%, var(--sidebar-dark) 100%);
}

/* Collapse Button for Mobile */
.sidebar-toggle {
    display: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: var(--sidebar-purple);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Rest of your existing styles */
.navbar-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #224abe 100%);
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
}

.card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.1);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: white;
    border-bottom: 1px solid #e3e6f0;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem 0.75rem 0 0 !important;
}

.table-container {
    overflow-x: auto;
}

.employee-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.employee-table thead th {
    background-color: var(--light-color);
    color: var(--dark-color);
    font-weight: 600;
    padding: 1rem;
    border-bottom: 2px solid #e3e6f0;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.employee-table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e3e6f0;
}

.employee-table tbody tr:hover {
    background-color: rgba(78, 115, 223, 0.05);
}

.profile-img-container {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e3e6f0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-img-default {
    width: 24px;
    height: 24px;
    opacity: 0.7;
}

.employee-name {
    font-weight: 600;
    color: var(--dark-color);
}

.employee-email {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.salary-badge {
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    border-radius: 0.375rem;
    font-size: 0.85rem;
}

.salary-usd {
    background-color: rgba(28, 200, 138, 0.1);
    color: var(--success-color);
}

.salary-afg {
    background-color: rgba(54, 185, 204, 0.1);
    color: var(--info-color);
}

.job-badge {
    background-color: #5a189a;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.85rem;
}

.btn-add {
    background: linear-gradient(135deg, var(--success-color) 0%, #5a189a 100%);
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 0.375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.search-container {
    position: relative;
    max-width: 300px;
}

.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #b0b3c1;
}

.search-input {
    padding-left: 45px;
    border-radius: 0.5rem;
    border: 1px solid #d1d3e2;
    height: calc(1.5em + 0.75rem + 2px);
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.alert-custom {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 0.15rem 0.5rem rgba(0, 0, 0, 0.1);
}

.alert-success {
    background-color: rgba(128, 0, 255, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-error,
.alert-danger {
    background-color: rgba(231, 74, 59, 0.1);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.alert-warning {
    background-color: rgba(246, 194, 62, 0.1);
    color: #b88c2c;
    border-left: 4px solid #f6c23e;
}

.alert-info {
    background-color: rgba(54, 185, 204, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.pagination-info {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.pagination {
    margin: 0;
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #e3e6f0;
    margin: 0 2px;
    border-radius: 0.375rem !important;
    padding: 0.375rem 0.75rem;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link:hover {
    color: #224abe;
    background-color: #f8f9fc;
    border-color: #d1d3e2;
}

.no-data {
    text-align: center;
    padding: 3rem !important;
    color: var(--secondary-color);
}

.no-data i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #d1d3e2;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 6px 10px;
    border-radius: 6px;
    border: none;
    transition: all 0.3s ease;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.btn-view {
    background-color: rgba(54, 185, 204, 0.1);
    color: var(--info-color);
}

.btn-view:hover {
    background-color: var(--info-color);
    color: white;
}

.btn-edit {
    background-color: #ffc107;
    color: #000;
}

.btn-edit:hover {
    background-color: #f6c23e;
    color: white;
}

.btn-delete {
    background-color: #dc3545;
    color: white;
}

.btn-info {
    background-color: #17a2b8;
    color: white;
}

.btn-info:hover {
    background-color: #138496;
    color: white;
}

.btn-edit a,
.btn-delete a,
.btn-info a {
    color: inherit;
    text-decoration: none;
}

/* HTMX Styles */
.htmx-swapping {
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

.employee-table tbody {
    display: table-row-group;
}

.employee-row {
    display: table-row;
}

.htmx-settling {
    display: none !important;
}

/* Delete Modal Styles */
.delete-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.delete-modal {
    background: white;
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: modalPop 0.3s ease;
    direction: rtl;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

@keyframes modalPop {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content {
    text-align: center;
}

.modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -55px auto 20px;
    border: 5px solid white;
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
}

.modal-icon i {
    font-size: 30px;
    color: white;
}

.delete-modal h3 {
    color: #2d3436;
    font-size: 24px;
    margin-bottom: 10px;
    font-family: 'Gulzar', serif;
}

.delete-modal p {
    color: #636e72;
    margin-bottom: 5px;
    font-size: 16px;
}

.warning-text {
    color: #dc3545 !important;
    font-size: 14px !important;
    font-weight: 500;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-cancel,
.btn-delete {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Gulzar', serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-cancel {
    background: #e9ecef;
    color: #495057;
}

.btn-cancel:hover {
    background: #dee2e6;
    transform: translateY(-2px);
}

.btn-delete {
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
}

.btn-delete:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

/* Status Badges */
.status-badge {
    padding: 4px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    margin: 2px 0px;
}

.badge-quarantine {
    background-color: #dc3545;
    color: white;
}

.badge-processed {
    background-color: #28a745;
    color: white;
}

.badge-lab-inner {
    background-color: #17a2b8;
    color: white;
}

.badge-lab-outer {
    background-color: #6610f2;
    color: white;
}

.badge-pending {
    background-color: #ffc107;
    color: #212529;
}

.location-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 32px;
    background-color: #ffffff;
}

.medicine-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #e9ecef;
    transition: transform 0.2s;
}

.medicine-image:hover {
    transform: scale(1.05);
    border-color: #5a189a;
}

.lab-status {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge-number {
    font-family: monospace;
    font-weight: 600;
    color: #5a189a;
}

/* Document Styles */
.document-type-badge {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.type-outgoing {
    background-color: #dc3545;
    color: white;
}

.type-incoming {
    background-color: #28a745;
    color: white;
}

.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.separator {
    border-left: 2px solid #dee2e6;
    height: 30px;
    margin: 0 15px;
}

.document-thumb {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.document-thumb:hover {
    transform: scale(1.1);
}

.filter-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: bold;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* ==================== HAMBURGER MENU STYLES ==================== */

/* Page Header Styles */
.page-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
    direction: rtl;
    position: relative;
    z-index: 100;
}

.header-left h2 {
    margin: 0;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.header-right {
    display: flex;
    align-items: center;
    padding: 8px 36px;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 45px;
    height: 45px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--sidebar-purple) 0%, var(--sidebar-dark) 100%);
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 4px 10px rgba(90, 24, 154, 0.3);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.hamburger-menu:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(90, 24, 154, 0.4);
}

.hamburger-menu span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hamburger animation for open state */
.hamburger-menu.open {
    background: linear-gradient(135deg, var(--sidebar-dark) 0%, var(--sidebar-purple) 100%);
}

.hamburger-menu.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger-menu.open span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.hamburger-menu.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Overlay for when sidebar is open */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Media Query for screens between 1024px and 1500px */
@media (max-width: 1500px) {
    .page-header {
        display: flex;
    }
    
    .sidebar-right {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        z-index: 999;
        width: 350px;
        max-width: 80%;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar-right.active {
        right: 0;
        display: block;
    }
    
    .main-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-container {
        display: block;
    }
    
    .sidebar-footer {
        position: sticky;
        bottom: 0;
    }
}

/* Media Query for screens below 1024px */
@media (max-width: 1023px) {
    .page-header {
        display: flex;
    }
    
    .sidebar-right {
        position: fixed;
        right: -100%;
        top: 0;
        height: 100vh;
        z-index: 999;
        width: 280px;
        max-width: 80%;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    }
    
    .sidebar-right.active {
        right: 0;
        display: block;
    }
    
    .main-content {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .hamburger-menu {
        display: flex;
    }
    
    .main-container {
        display: block;
    }
    
    .sidebar-footer {
        position: sticky;
        bottom: 0;
    }
}

/* Ensure smooth transitions */
.sidebar-right, .main-content, .hamburger-menu, .sidebar-overlay {
    transition: all 0.3s ease;
}