/* 1. O'zgaruvchilar va Asosiy Sozlamalar */
:root {
    --bg-color: #eef2f7;
    --sidebar-bg: #111827;
    --sidebar-active: #4361ee;
    --card-bg: #ffffff;
    --primary: #4361ee;
    --success: #00ab66;
    --danger: #e63946;
    --accent: #3a56d4;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border-color: #d1d5db;
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --white: #ffffff;
}

body {
    font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    display: flex;
    background-color: var(--bg-color);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 2. Sidebar Dizayni */
.sidebar {
    width: 280px;
    height: 100vh;
    background: var(--sidebar-bg);
    color: white;
    position: fixed;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

.sidebar.active {
    width: 70px;
}

.logo {
    padding: 30px 25px;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-logo {
    padding: 17px;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 20px;
}

.main-logo {
    max-width: 160px;
    height: auto;
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #ffffff 0%, #f0f2f5 100%);
    padding: 12px 25px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.main-logo:hover {
    transform: translateY(-3px);
}

/* 3. Menyu Elementlari */
.menu-item {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    color: #9ca3af;
    text-decoration: none;
    margin: 8px 15px;
    border-radius: 12px;
    font-weight: 500;
    gap: 15px;
    transition: var(--transition);
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
}

.menu-item.active {
    background: var(--sidebar-active);
    color: white;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.nav-icon-img,
.menu-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
    transition: var(--transition);
}

.menu-item.active .menu-icon-img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.sidebar.active .menu-item {
    margin: 15px;
}

/* 4. User Profil (Sidebar pastida) */
.user-footer {
    padding: 20px 15px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: auto;
    width: 100%;
    box-sizing: border-box;
}

.user-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    position: relative;
    width: 45px;
    height: 45px;
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.status-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background-color: var(--success);
    border: 2px solid var(--sidebar-bg);
    border-radius: 50%;
}

.u-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}

.u-role {
    font-size: 12px;
    color: #9ca3af;
}

.logout-item:hover {
    background: rgba(230, 57, 70, 0.1) !important;
}

.logout-item:hover span,
.logout-item:hover i {
    color: var(--danger) !important;
}

/* 5. Asosiy Kontent Maydoni */
.main-content {
    margin-left: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: var(--transition);
}

.sidebar.active~.main-content {
    margin-left: 70px;
}

.top-bar {
    background: #111827;
    color: white;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 11. Article Review Styles */
.review-card {
    border: none;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.review-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    padding: 25px 30px;
    color: white;
}

.review-body {
    padding: 30px;
}

.info-group {
    margin-bottom: 25px;
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
}

.file-download-box {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.file-download-box:hover {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.1);
}

.status-radio-group {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

.custom-radio-item {
    padding: 10px 15px;
    border-radius: 10px;
    transition: all 0.2s;
    cursor: pointer;
}

.custom-radio-item:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* 12. Role Page Management Styles */
.modal-content {
    border-radius: 20px;
    border: none;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.modal-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    border-radius: 20px 20px 0 0;
    padding: 20px 30px;
}

.modal-title {
    font-weight: 700;
    color: var(--text-main);
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 20px 30px;
}

.database-card {
    border: 1px dashed #ced4da;
    background: #f8f9fa;
    border-radius: 12px;
}

.database-card .card-header {
    background: transparent;
    border-bottom: 1px dashed #ced4da;
}

.badge-role-admin { background-color: #e63946; color: white; }
.badge-role-registrar { background-color: #4361ee; color: white; }
.badge-role-academic { background-color: #f72585; color: white; }
.badge-role-user { background-color: #4cc9f0; color: white; }

.table-action-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.table-action-btn:hover {
    transform: translateY(-2px);
}

/* 13. User Details Modal Styles */
.user-modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 30px;
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
}

.user-modal-avatar {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 15px;
}

.user-modal-body {
    padding: 30px;
}

.user-info-item {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.2s;
}

.user-info-item:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

.user-info-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.user-info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

.role-badge-pill {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
    margin-bottom: 5px;
}

.role-badge-pill.admin { background: rgba(230, 57, 70, 0.1); color: #e63946; }
.role-badge-pill.registrar { background: rgba(67, 97, 238, 0.1); color: #4361ee; }
.role-badge-pill.academic { background: rgba(247, 37, 133, 0.1); color: #f72585; }
.role-badge-pill.user { background: rgba(76, 201, 240, 0.1); color: #4cc9f0; }

.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
}

.status-indicator.active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-indicator.inactive {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 14. Content Body */
.content-body {
    flex: 1;
    padding: 30px 40px;
    width: 100%;
}

/* 6. Kartalar va Formlar */
.glass-card {
    background: var(--card-bg);
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    border: 1px solid var(--border-color);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    margin-bottom: 20px;
}

label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

/* Kalendar ichidagi yozuv rangini oq qilish */
.header-calendar-box .form-control.input {
    color: white !important;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
}

.header-calendar-box .form-control.input::placeholder {
    color: rgba(255, 255, 255, 0.8) !important;
}

.header-calendar-box i {
    color: white !important;
}

input:not([type="checkbox"]),
select,
.form-control,
.form-select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-main);
    transition: var(--transition);
    box-sizing: border-box;
}

/* Kalendar inputlari uchun maxsus (Auto width) */
input.custom-date-input,
input.premium-date-input {
    width: 170px !important;
    display: inline-block;
    min-width: 130px;
    padding: 8px 12px; /* Kichikroq padding */
}

input:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.input-lg {
    font-size: 28px !important;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    background: #f0f4ff !important;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 18px;
    padding-right: 45px;
}

/* 7. Tugmalar */
.btn-save-main {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
}

.btn-save-main:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: var(--success);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 8. Profil va Maxsus qismlar */
.profile-upload-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar-edit-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
}

.profile-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-lg);
}

.upload-label {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 3px solid var(--white);
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

input[type="checkbox"].custom-checkbox {
    width: 18px !important;
    height: 18px !important;
    margin: 0;
}

/* 9. Mobil Moslashuv (Responsive) */
.mobile-nav-toggle {
    display: none;
    position: fixed;
    top: 15px;
    left: 15px;
    z-index: 1100;
    background: var(--sidebar-active);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 992px) {
    .mobile-nav-toggle {
        display: flex;
    }

    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }

    .sidebar.active {
        transform: translateX(0);
        width: 260px;
    }

    .sidebar.active .logo-text,
    .sidebar.active .menu-item span,
    .sidebar.active .user-info {
        display: block;
    }

    .main-content {
        margin-left: 0 !important;
    }

    .row-item {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
        background: #fff;
        border-radius: 12px;
        border: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 25px 15px;
    }

    .top-bar {
        padding: 15px 20px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* 10. Yordamchi Klasslar */
.text-center {
    text-align: center;
}

.w-fit {
    width: fit-content;
    margin: 0 auto;
}

.readonly-field {
    background-color: #f8f9fa;
    cursor: not-allowed;
    color: #6c757d;
}

/* Bootstrap Grid System */
.container,
.container-fluid {
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

.no-gutters {
    margin-right: 0;
    margin-left: 0;
}

.no-gutters>.col,
.no-gutters>[class*='col-'] {
    padding-right: 0;
    padding-left: 0;
}

.col,
.col-auto,
.col-1,
.col-2,
.col-3,
.col-4,
.col-5,
.col-6,
.col-7,
.col-8,
.col-9,
.col-10,
.col-11,
.col-12,
.col-sm,
.col-sm-auto,
.col-sm-1,
.col-sm-2,
.col-sm-3,
.col-sm-4,
.col-sm-5,
.col-sm-6,
.col-sm-7,
.col-sm-8,
.col-sm-9,
.col-sm-10,
.col-sm-11,
.col-sm-12,
.col-md,
.col-md-1,
.col-md-2,
.col-md-3,
.col-md-4,
.col-md-5,
.col-md-6,
.col-md-7,
.col-md-8,
.col-md-9,
.col-md-10,
.col-md-11,
.col-md-12,
.col-lg,
.col-lg-auto,
.col-lg-1,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-5,
.col-lg-6,
.col-lg-7,
.col-lg-8,
.col-lg-9,
.col-lg-10,
.col-lg-11,
.col-lg-12,
.col-xl,
.col-xl-auto,
.col-xl-1,
.col-xl-2,
.col-xl-3,
.col-xl-4,
.col-xl-5,
.col-xl-6,
.col-xl-7,
.col-xl-8,
.col-xl-9,
.col-xl-10,
.col-xl-11,
.col-xl-12 {
    position: relative;
    width: 100%;
}

.col {
    flex-basis: 0;
    flex-grow: 1;
    max-width: 100%;
}

.col-auto {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
}

.col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3 { flex: 0 0 25.000000%; max-width: 25.000000%; }
.col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6 { flex: 0 0 50.000000%; max-width: 50.000000%; }
.col-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9 { flex: 0 0 75.000000%; max-width: 75.000000%; }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100.000000%; max-width: 100.000000%; }

@media (min-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
    .col-md-3 { flex: 0 0 25.000000%; max-width: 25.000000%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
    .col-md-6 { flex: 0 0 50.000000%; max-width: 50.000000%; }
    .col-md-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-md-9 { flex: 0 0 75.000000%; max-width: 75.000000%; }
    .col-md-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-md-12 { flex: 0 0 100.000000%; max-width: 100.000000%; }
}

@media (min-width: 992px) {
    .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-lg-6 { flex: 0 0 50.000000%; max-width: 50.000000%; }
}

/* --- KUNLIK HISOBOT PAGE STYLES --- */
:root {
    --paynet-color: #4361ee;
    --beepul-color: #f1c40f;
    --dop-color: #2ecc71;
    --sim-color: #9b59b6;
    --chiqim-color: #e74c3c;
    /* --text-main: #1f2937;  -- Already defined */
    /* --text-muted: #6b7280; -- Already defined */
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.report-wrapper {
    padding: 15px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Summary Grid - Forces 3 Columns on desktop */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
    animation: slideDown 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Modern Glass Card for Summaries */
.summary-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    border: 1px solid rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.summary-icon-box {
    width: 60px; 
    height: 60px; 
    border-radius: 18px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 28px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

.status-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* height: 100%; */
}

.status-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.card-icon-bg {
    position: absolute;
    right: -15px;
    top: -15px;
    font-size: 110px;
    opacity: 0.03;
    transform: rotate(-15deg);
    pointer-events: none;
    transition: all 0.5s ease;
}

.status-card:hover .card-icon-bg {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.05;
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    z-index: 1;
}

.service-info h5 {
    font-weight: 800;
    margin: 0;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.date-badge {
    background: rgba(0, 0, 0, 0.04);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #666;
    border: 1px solid rgba(0,0,0,0.02);
}

.data-display {
    background: #f8f9fa;
    border-radius: 18px;
    padding: 24px;
    text-align: center;
    border: 2px dashed #e9ecef;
    transition: all 0.3s;
}

.data-display:hover {
    border-color: #dbe4ff;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.amount-large {
    font-size: 34px;
    font-weight: 900;
    display: block;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding: 8px 0;
    font-size: 0.95rem;
}

.meta-row:last-child {
    border-bottom: none;
}

/* Custom Input Overrides */
.custom-input {
    /* width: 100%; */
    padding: 14px 18px;
    border-radius: 14px;
    border: 2px solid #eef0f3;
    background: #fdfdfd;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-main);
}

.custom-input:focus {
    border-color: var(--paynet-color);
    outline: none;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.btn-action {
    width: 100%;
    padding: 16px;
    border-radius: 14px;
    border: none;
    font-weight: 800;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.15);
    margin-top: auto;
    font-size: 0.9rem;
}

.btn-action:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.25);
}

.btn-action:active {
    transform: scale(0.98);
}

.chiqim-card-item {
    background: #fff;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border-left: 5px solid var(--chiqim-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s;
    border: 1px solid #f0f0f0;
}

.chiqim-card-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.delete-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4d4d;
    background: #fff5f5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 77, 77, 0.1);
}

.delete-circle:hover {
    background: #ff4d4d;
    color: #fff;
}

/* Animations for staggered entrance */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.col-lg-4 {
    animation: fadeInUp 0.6s ease-out backwards;
}

.col-lg-4:nth-child(1) { animation-delay: 0.1s; }
.col-lg-4:nth-child(2) { animation-delay: 0.15s; }
.col-lg-4:nth-child(3) { animation-delay: 0.2s; }
.col-lg-4:nth-child(4) { animation-delay: 0.25s; }
.col-lg-4:nth-child(5) { animation-delay: 0.3s; }
.col-lg-4:nth-child(6) { animation-delay: 0.35s; }

/* Custom Date Input for consistent design */
input[type="date"].custom-date-input {
    appearance: none;
    -webkit-appearance: none;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #4b5563;
    background-color: #374151; /* Dark background matching top-bar */
    color: white;
    font-family: inherit;
    font-size: 14px;
    width: 140px; 
    outline: none;
    transition: all 0.2s ease;
    cursor: text; 
}

input[type="date"].custom-date-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.2);
}

/* Custom Calendar Icon color adjust for dark bg */
input[type="date"].custom-date-input::-webkit-calendar-picker-indicator {
    filter: invert(1); /* Make icon white */
    cursor: pointer;
}
/* Application Status Page Styles */
/* Compact Layout Styles */
.glass-container {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.8);
}

/* Compact Header */
.progress-header {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: 16px;
    padding: 20px 25px;
    color: white;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.progress-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
}

.progress-track {
    background: rgba(255,255,255,0.2);
    height: 6px;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.progress-fill {
    background: #4cc9f0;
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Step Cards */
.step-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-color: #d1d5db;
}

/* Status Colors for Borders/Icons */
.step-card.approved { border-top: 4px solid #10b981; }
.step-card.rejected { border-top: 4px solid #ef4444; }
.step-card.pending { border-top: 4px solid #f59e0b; }
.step-card.empty { border-top: 4px solid #9ca3af; }

.step-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.approved .step-icon-box { background: #d1fae5; color: #059669; }
.rejected .step-icon-box { background: #fee2e2; color: #dc2626; }
.pending .step-icon-box { background: #fef3c7; color: #d97706; }
.empty .step-icon-box { background: #f3f4f6; color: #9ca3af; }

/* Typography */
.step-number {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.step-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 5px;
}

.role-badge {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f9fafb;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 15px;
    font-weight: 500;
}

.feedback-box {
    background: #fff5f5;
    border: 1px dashed #feb2b2;
    border-radius: 10px;
    padding: 10px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #9b2c2c;
}

.action-link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    width: 100%;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.approved .action-link { background: rgba(16, 185, 129, 0.1); color: #059669; cursor: default; }
.rejected .action-link { background: #fee2e2; color: #dc2626; }
.rejected .action-link:hover { background: #fecaca; }

.empty .action-link, .pending .action-link { background: #eff6ff; color: #2563eb; }
.empty .action-link:hover, .pending .action-link:hover { background: #dbeafe; }


/* 15. Content Card and Article Styles */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 30px;
}

.form-label {
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-control, .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    padding: 12px 18px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-control:focus, .form-select:focus {
    background: #fff;
    border-color: #4a90d9;
    box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.15);
    transform: translateY(-1px);
}

.article-item {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.article-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(255, 255, 255, 0.8);
}

.article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: #cbd5e0;
    opacity: 0.8;
}

.article-item.status-approved::before { background: #48bb78; }
.article-item.status-rejected::before { background: #f56565; }
.article-item.status-pending::before { background: #ed8936; }

.status-badge {
    width: auto !important;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.status-badge.approved { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); 
    color: #065f46; 
    border: 1px solid rgba(16, 185, 129, 0.2); 
}
.status-badge.rejected { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); 
    color: #991b1b; 
    border: 1px solid rgba(239, 68, 68, 0.2); 
}
.status-badge.pending { 
    background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); 
    color: #9a3412; 
    border: 1px solid rgba(249, 115, 22, 0.2); 
}

.article-meta {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

.article-actions .btn {
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.2s;
}

.article-actions .btn:hover {
    transform: translateY(-2px);
}

.btn-primary-custom {
    background: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    border: none;
    padding: 14px 40px;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    transition: all 0.3s ease;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
    color: white;
}

/* 15. Modern Select2 Styling (Global) */
.select2-container .select2-selection--single,
.select2-container--default .select2-selection--single {
    background-color: #ffffff !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    height: 52px !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.25s ease !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #bfa1ff !important;
    background-color: #fcfaff !important;
}

.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: #4361ee !important;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1) !important;
    background-color: #ffffff !important;
}


.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1a202c !important;
    font-weight: 600 !important;
    padding-left: 16px !important;
    font-size: 0.95rem !important;
    line-height: normal !important;
    display: flex !important;
    align-items: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px !important;
    width: 40px !important;
    right: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-width: 6px 5px 0 5px !important;
    border-color: #718096 transparent transparent transparent !important;
    transition: transform 0.2s ease !important;
    position: static !important;
    margin-top: 0 !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: rotate(180deg) !important;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 14px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    margin-top: 8px !important;
    overflow: hidden !important;
    z-index: 9999 !important;
}

.select2-search--dropdown {
    padding: 12px !important;
    background: #f7fafc !important;
}

.select2-search__field {
    border-radius: 10px !important;
    border: 1px solid #e2e8f0 !important;
    padding: 10px 14px !important;
    font-size: 0.9rem !important;
}

.select2-search__field:focus {
    border-color: #4361ee !important;
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1) !important;
    outline: none !important;
}

.select2-results__option {
    padding: 12px 18px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: #4a5568 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4361ee !important;
    color: #ffffff !important;
}

.select2-container--default .select2-results__option--selected {
    background-color: #ebf4ff !important;
    color: #4361ee !important;
    font-weight: 700 !important;
}

/* Fix for Select2 width in some contexts */
/* .select2-container {
    width: 100% !important;
} */

