/* ==========================================================================
   QLKT - QUẢN LÝ KINH TẾ
   Sleek Glassmorphic Dashboard Stylesheet (Combobox Theme)
   ========================================================================== */

/* ---- Reset & Base ---- */
body {
    background: url("../image/nhutrac.jpeg") no-repeat center top / cover fixed;
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1a2a3a;
}

/* Glass Header / Footer Override */
header #web-head,
#footer {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

#footer .footer-top,
#footer .footer-bottom {
    background: transparent !important;
}

/* Page Layout */
#pagebody {
    padding-top: 130px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Section */
.qlkt-section {
    background: transparent;
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ---- Glassmorphic Header Bar ---- */
.qlkt-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    padding: 16px 28px;
    margin-bottom: 24px;
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    gap: 20px;
}

.qlkt-header-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
}

.qlkt-header-title i {
    font-size: 1.4rem;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qlkt-header-title h2 {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Combobox Selector Container */
.qlkt-header-select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qlkt-header-select-wrap label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #475569;
    margin: 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Sleek Dropdown styling */
.qlkt-select-dropdown {
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.25s ease;
    height: 44px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    min-width: 460px;
    outline: none;
}

.qlkt-select-dropdown:hover {
    border-color: #0284c7;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.1);
}

.qlkt-select-dropdown:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

/* Category Accent Icons Backgrounds */
.qlkt-icon-1  { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.qlkt-icon-2  { background: linear-gradient(135deg, #10b981, #047857); }
.qlkt-icon-3  { background: linear-gradient(135deg, #f59e0b, #b45309); }
.qlkt-icon-4  { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.qlkt-icon-5  { background: linear-gradient(135deg, #8b5cf6, #5d3ebd); }
.qlkt-icon-6  { background: linear-gradient(135deg, #ec4899, #be185d); }
.qlkt-icon-7  { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.qlkt-icon-8  { background: linear-gradient(135deg, #f97316, #c2410c); }
.qlkt-icon-9  { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.qlkt-icon-10 { background: linear-gradient(135deg, #6366f1, #4338ca); }
.qlkt-icon-11 { background: linear-gradient(135deg, #84cc16, #4d7c0f); }

/* ---- Glassmorphic Content Area ---- */
.qlkt-content-area {
    display: block;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 32px;
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    min-height: 520px;
    transition: all 0.3s ease;
}

.qlkt-content-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
}

.qlkt-content-title i {
    color: #0284c7;
}

/* ---- Tab Layouts Internals ---- */

/* Metric Cards Grid */
.qlkt-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.qlkt-metric-card {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: transform 0.2s ease;
}

.qlkt-metric-card:hover {
    transform: translateY(-2px);
    background: #ffffff;
}

.qlkt-metric-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #fff;
}

.qlkt-metric-info {
    display: flex;
    flex-direction: column;
}

.qlkt-metric-label {
    font-size: 0.72rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.qlkt-metric-value {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin-top: 2px;
}

.qlkt-metric-sub {
    font-size: 0.68rem;
    color: #059669;
    font-weight: 600;
    margin-top: 1px;
}

/* Toolbar & Filters */
.qlkt-toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 18px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 20px;
}

.qlkt-search-wrapper {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.qlkt-search-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 0.85rem;
}

.qlkt-search-input {
    width: 100%;
    padding: 8px 14px 8px 36px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    color: #1e293b;
    transition: all 0.2s;
    height: 38px;
}

.qlkt-search-input:focus {
    outline: none;
    border-color: #0284c7;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}

.qlkt-filter-select {
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.9);
    font-size: 0.82rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.2s;
    height: 38px;
    min-width: 150px;
}

.qlkt-filter-select:focus {
    outline: none;
    border-color: #0284c7;
}

.qlkt-btn-primary {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
    transition: all 0.2s;
    height: 38px;
}

.qlkt-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(2, 132, 199, 0.3);
    background: linear-gradient(135deg, #0369a1, #075985);
}

/* Tables Styling */
.qlkt-table-wrapper {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.qlkt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: left;
}

.qlkt-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 700;
    padding: 12px 16px;
    border-bottom: 2px solid #edf2f7;
    white-space: nowrap;
}

.qlkt-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
    vertical-align: middle;
}

.qlkt-table tbody tr:last-child td {
    border-bottom: none;
}

.qlkt-table tbody tr:hover {
    background: #f8fafc;
}

/* Badges inside tables */
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.68rem;
    font-weight: 700;
}

.badge-status.success { background: #d1fae5; color: #065f46; }
.badge-status.warning { background: #fef3c7; color: #92400e; }
.badge-status.danger  { background: #fee2e2; color: #991b1b; }
.badge-status.info    { background: #e0f2fe; color: #075985; }

/* Progress bar inside tables */
.progress-container {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}

.progress-bar-bg {
    flex: 1;
    background: #f1f5f9;
    border-radius: 8px;
    height: 8px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 8px;
    background: linear-gradient(90deg, #10b981, #059669);
}

.progress-text {
    font-size: 0.72rem;
    font-weight: 700;
    color: #475569;
}

/* Document List */
.qlkt-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.qlkt-doc-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

.qlkt-doc-item:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.qlkt-doc-file-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.qlkt-doc-file-icon.pdf  { background: #fef2f2; color: #ef4444; }
.qlkt-doc-file-icon.word { background: #eff6ff; color: #3b82f6; }
.qlkt-doc-file-icon.excel { background: #ecfdf5; color: #10b981; }

.qlkt-doc-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.qlkt-doc-details h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
    line-height: 1.4;
}

.qlkt-doc-details p {
    font-size: 0.72rem;
    color: #64748b;
    margin-bottom: 8px;
}

.qlkt-doc-meta {
    display: flex;
    gap: 12px;
    font-size: 0.68rem;
    color: #94a3b8;
    margin-top: auto;
}

.qlkt-btn-download {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #64748b;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qlkt-btn-download:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Service Calculator Widget */
.qlkt-calc-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.qlkt-calc-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qlkt-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qlkt-form-group label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
}

.qlkt-calc-result-panel {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    border-radius: 14px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    text-align: center;
}

.qlkt-calc-result-panel h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.qlkt-calc-price-big {
    font-size: 2.2rem;
    font-weight: 900;
    color: #38bdf8;
    line-height: 1.1;
    margin-bottom: 8px;
}

.qlkt-calc-desc {
    font-size: 0.78rem;
    color: #cbd5e1;
    line-height: 1.5;
    max-width: 240px;
}

/* Empty State / Loader */
.qlkt-empty-state {
    text-align: center;
    padding: 60px 24px;
    color: #64748b;
}

.qlkt-empty-state i {
    font-size: 2.5rem;
    color: #cbd5e1;
    margin-bottom: 12px;
}

.qlkt-empty-state p {
    font-size: 0.85rem;
}

/* Highcharts Container Override */
.qlkt-chart-box {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ---- Responsive Adjustments ---- */

/* Desktop screens */
@media (min-width: 1200px) {
    #pagebody { padding-top: 100px; }
}

@media (max-width: 1100px) {
    .qlkt-metric-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 992px) {
    .qlkt-header-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 20px;
        gap: 12px;
    }
    .qlkt-header-select-wrap {
        flex-direction: column;
        align-items: stretch;
    }
    .qlkt-select-dropdown {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .qlkt-section {
        padding: 16px 12px 40px;
    }
    .qlkt-content-area {
        padding: 20px 16px;
    }
    .qlkt-calc-box {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    .qlkt-doc-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    #pagebody { padding-top: 160px; }
    .qlkt-metric-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .qlkt-toolbar {
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
    }
    .qlkt-search-wrapper {
        min-width: 0;
    }
}

/* ==========================================================================
   QLKT - PROFILE & MULTI-FILE UPLOAD PREMIUM STYLES
   ========================================================================== */

/* Premium Glassmorphic Modal */
.glassmorphic-modal {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
    overflow: hidden;
}

.glassmorphic-modal .modal-header {
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 18px 24px;
}

.glassmorphic-modal .modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.glassmorphic-modal .modal-title i {
    color: #0284c7;
}

.glassmorphic-modal .modal-body {
    padding: 24px;
}

.glassmorphic-modal .modal-footer {
    background: rgba(255, 255, 255, 0.4);
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    padding: 16px 24px;
}

/* Upload Drag-and-Drop Zone */
.upload-dropzone {
    border: 2px dashed rgba(2, 132, 199, 0.35);
    background: rgba(2, 132, 199, 0.02);
    border-radius: 14px;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-dropzone:hover, .upload-dropzone.dragover {
    border-color: #0284c7;
    background: rgba(2, 132, 199, 0.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(2, 132, 199, 0.08);
}

.upload-dropzone i {
    color: #0284c7;
    transition: transform 0.2s;
}

.upload-dropzone:hover i {
    transform: translateY(-3px);
}

.upload-dropzone p {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: #1e293b;
}

/* Selected File & Existing File Item Listings */
.list-group-item.file-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px !important;
    margin-bottom: 6px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all 0.2s ease;
}

.list-group-item.file-item:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    flex: 1;
}

.file-item-info i {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.file-item-info i.pdf { color: #ef4444; }
.file-item-info i.word { color: #3b82f6; }
.file-item-info i.excel { color: #10b981; }
.file-item-info i.generic { color: #64748b; }

.file-item-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-item-size {
    font-size: 0.7rem;
    color: #64748b;
    margin-left: 6px;
    font-weight: 500;
}

.btn-remove-file {
    color: #94a3b8;
    background: transparent;
    border: none;
    font-size: 0.9rem;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-remove-file:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

/* Premium action buttons inside table */
.btn-action-edit {
    border: 1px solid rgba(2, 132, 199, 0.25) !important;
    background: transparent !important;
    color: #0284c7 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    transition: all 0.2s !important;
}

.btn-action-edit:hover {
    background: #0284c7 !important;
    color: #ffffff !important;
    border-color: #0284c7 !important;
    box-shadow: 0 4px 10px rgba(2, 132, 199, 0.15);
}

.btn-action-delete {
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
    background: transparent !important;
    color: #ef4444 !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 700 !important;
    font-size: 0.75rem !important;
    transition: all 0.2s !important;
}

.btn-action-delete:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.15);
}

/* Action container centering */
.table-action-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* File badge links inside tables */
.profile-file-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 4px 12px;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s;
    margin-right: 6px;
    margin-bottom: 4px;
}

.profile-file-link:hover {
    background: #ffffff;
    border-color: #0284c7;
    color: #0284c7;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(2, 132, 199, 0.08);
}

.profile-file-link i.pdf { color: #ef4444; }
.profile-file-link i.word { color: #3b82f6; }
.profile-file-link i.excel { color: #10b981; }
.profile-file-link i.generic { color: #64748b; }

/* Compact colorful file extension pill badges */
.profile-file-badge-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 800;
    transition: all 0.2s ease-in-out;
    margin-right: 6px;
    margin-bottom: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-file-badge-icon.badge-danger {
    background: rgba(239, 68, 68, 0.08);
    color: #ef4444;
}
.profile-file-badge-icon.badge-danger:hover {
    background: #ef4444;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
    transform: translateY(-1px);
}

.profile-file-badge-icon.badge-primary {
    background: rgba(59, 130, 246, 0.08);
    color: #3b82f6;
}
.profile-file-badge-icon.badge-primary:hover {
    background: #3b82f6;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.profile-file-badge-icon.badge-success {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
}
.profile-file-badge-icon.badge-success:hover {
    background: #10b981;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateY(-1px);
}

.profile-file-badge-icon.badge-secondary {
    background: rgba(100, 116, 139, 0.08);
    color: #64748b;
}
.profile-file-badge-icon.badge-secondary:hover {
    background: #64748b;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.2);
    transform: translateY(-1px);
}

/* ==========================================================================
   QLKT - GRID & SPLIT LAYOUT REDESIGN
   ========================================================================== */

/* Grid Mode: 4x3 Grid of Databases */
.qlkt-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 10px;
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease-out;
    opacity: 1;
    transform: scale(1);
}

.qlkt-grid-container.fade-out-shrink {
    opacity: 0;
    transform: scale(0.96);
}

.qlkt-db-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    padding: 24px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    position: relative;
    overflow: hidden;
}

.qlkt-db-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: transparent;
    transition: background 0.3s;
}

.qlkt-db-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 15px 40px rgba(2, 132, 199, 0.12);
    border-color: rgba(2, 132, 199, 0.3);
}

.qlkt-db-card:hover::before {
    background: linear-gradient(90deg, #0284c7, #0369a1);
}

.qlkt-db-card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 16px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s;
}

.qlkt-db-card:hover .qlkt-db-card-icon {
    transform: scale(1.1) rotate(5deg);
}

.qlkt-db-card h3 {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.5;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-transform: uppercase;
}

/* Split View: Left Sidebar & Right Content Area */
.qlkt-split-container {
    display: flex;
    gap: 24px;
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    align-items: flex-start;
}

/* Left Sidebar */
.qlkt-sidebar-pane {
    width: 360px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 22px;
    padding: 20px 16px;
    box-shadow: 0 10px 45px rgba(0, 0, 0, 0.08);
    max-height: 85vh;
    overflow-y: auto;
    position: sticky;
    top: 100px;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease-out;
    opacity: 1;
    transform: scale(1);
}

.qlkt-split-container.animating .qlkt-sidebar-pane {
    opacity: 0;
    transform: scale(0.96);
}

.sidebar-home-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #fff !important;
    border: none;
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.2);
    text-transform: uppercase;
}

.sidebar-home-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.3);
    background: linear-gradient(135deg, #334155, #1e293b);
}

.sidebar-db-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: all 0.25s;
    position: relative;
    overflow: hidden;
}

.sidebar-db-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(2, 132, 199, 0.25);
    transform: translateX(4px);
}

.sidebar-db-item.active {
    background: #ffffff;
    border-color: #0284c7;
    box-shadow: 0 4px 18px rgba(2, 132, 199, 0.1);
}

.sidebar-db-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: transparent;
    transition: background 0.2s;
}

.sidebar-db-item.active::before {
    background: #0284c7;
}

.sidebar-db-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: #fff;
    flex-shrink: 0;
}

.sidebar-db-item h4 {
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    margin: 0;
    line-height: 1.4;
    text-transform: uppercase;
}

.sidebar-db-item.active h4 {
    color: #0f172a;
}

/* Right Content Pane */
.qlkt-content-pane {
    flex: 1;
    min-width: 0;
    transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.25s ease-out;
    opacity: 1;
    transform: scale(1);
}

.qlkt-split-container.animating .qlkt-content-pane {
    opacity: 0;
    transform: scale(0.96);
}

/* Responsive grid */
@media (max-width: 1400px) {
    .qlkt-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .qlkt-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .qlkt-split-container {
        flex-direction: column;
        align-items: stretch;
    }
    .qlkt-sidebar-pane {
        width: 100%;
        position: static;
        max-height: 300px;
    }
}

@media (max-width: 600px) {
    .qlkt-grid-container {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   QLKT - VIEWPORT-LOCKED GRID MODE AND CENTERED CARD DESIGNS
   ========================================================================== */

/* 1. Viewport lock on wide desktop screens to prevent scrollbars */
@media (min-width: 1101px) {
    body.qlkt-grid-mode {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    body.qlkt-grid-mode #pagebody {
        flex: 1;
        min-height: 0;
        padding-top: 90px;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    body.qlkt-grid-mode .qlkt-section {
        flex: 1;
        min-height: 0;
        padding: 10px 24px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    /* Pull footer up: make it a sleek, compact bottom bar */
    body.qlkt-grid-mode #footer .footer-top {
        display: none !important;
    }

    body.qlkt-grid-mode #footer {
        padding: 0 !important;
        background: rgba(255, 255, 255, 0.45) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.25) !important;
    }

    body.qlkt-grid-mode #footer .footer-bottom {
        padding: 10px 0 !important;
        background: transparent !important;
    }

    body.qlkt-grid-mode #footer .footer-bottom .content p {
        margin: 0 !important;
        font-size: 0.75rem !important;
        font-weight: 700;
        color: #334155;
    }
}

/* 2. Sleek compact cards and centered flex alignment in grid mode */
body.qlkt-grid-mode .qlkt-grid-container {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 0 !important;
    max-width: 96% !important;
    width: 100% !important;
}

body.qlkt-grid-mode .qlkt-db-card {
    flex: 0 1 calc(25% - 16px) !important; /* 4 columns on large screens */
    min-width: 250px !important;
    max-width: 380px !important;
    min-height: 140px !important;
    padding: 18px 14px !important;
    border-radius: 16px !important;
    justify-content: center !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04) !important;
}

body.qlkt-grid-mode .qlkt-db-card-icon {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
    font-size: 1.25rem !important;
    margin-bottom: 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

body.qlkt-grid-mode .qlkt-db-card h3 {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    line-height: 1.4 !important;
    letter-spacing: -0.01em !important;
}

/* Responsive columns inside grid mode */
@media (max-width: 1100px) {
    body.qlkt-grid-mode .qlkt-db-card {
        flex: 0 1 calc(33.333% - 16px) !important; /* 3 columns */
    }
}

@media (max-width: 768px) {
    body.qlkt-grid-mode .qlkt-db-card {
        flex: 0 1 calc(50% - 16px) !important; /* 2 columns */
    }
    body.qlkt-grid-mode .qlkt-grid-container {
        gap: 12px !important;
    }
}

@media (max-width: 480px) {
    body.qlkt-grid-mode .qlkt-db-card {
        flex: 0 1 100% !important; /* 1 column */
    }
}

/* Fix Font Awesome unicode icons on Windows Server */
.fa, .fas, .far {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free", "FontAwesome", sans-serif !important;
}
.fab {
    font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands", sans-serif !important;
}

