/* --- Dhumketu Premium Light Mode Design System --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: hsl(220, 20%, 97%);
    --bg-card: hsl(0, 0%, 100%);
    --bg-card-hover: hsl(220, 20%, 98%);
    --border-color: hsl(214, 15%, 89%);
    --border-color-glow: hsl(217, 89%, 60%);

    --primary: hsl(217, 89%, 48%);
    --primary-glow: rgba(28, 100, 242, 0.12);
    --accent: hsl(250, 60%, 50%);
    --accent-glow: rgba(102, 51, 255, 0.12);

    --text-main: hsl(222, 47%, 12%);
    --text-muted: hsl(215, 16%, 47%);
    --text-dark: hsl(222, 47%, 12%);

    --success: hsl(142, 72%, 29%);
    --warning: hsl(38, 92%, 38%);
    --danger: hsl(350, 78%, 43%);
}

body.auth-body {
    background: radial-gradient(circle at 10% 20%, hsl(210, 20%, 99%) 0%, hsl(214, 16%, 92%) 90%);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

body.admin-body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Auth Card (Glassmorphism Light) --- */
.auth-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 20px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05),
        0 0 50px rgba(28, 100, 242, 0.02);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        border-color 0.4s ease;
}

.auth-card:hover {
    border-color: var(--border-color-glow);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.07),
        0 0 60px rgba(28, 100, 242, 0.04);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo h1 {
    font-weight: 800;
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: -1px;
}

.auth-logo p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 5px;
}

/* --- Styled Form Controls (Light Mode) --- */
.premium-label {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-input {
    background: hsl(0, 0%, 100%) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    color: var(--text-main) !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.premium-input::placeholder {
    color: hsl(215, 12%, 70%) !important;
}

.premium-input:focus {
    background: hsl(0, 0%, 100%) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px var(--primary-glow) !important;
    outline: none !important;
}

/* --- Premium Buttons --- */
.btn-premium {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 15px rgba(28, 100, 242, 0.15);
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(28, 100, 242, 0.25),
        0 0 15px var(--primary-glow);
}

.btn-premium:active {
    transform: translateY(0);
}

/* --- Standardized Action Buttons (Save/Delete) --- */
.dh-btn-save {
    background: linear-gradient(135deg, hsl(217, 89%, 60%) 0%, hsl(217, 89%, 48%) 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 8px 20px !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease-in-out !important;
    box-shadow: 0 4px 10px rgba(28, 100, 242, 0.2) !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.dh-btn-save:hover {
    background: linear-gradient(135deg, hsl(217, 89%, 65%) 0%, hsl(217, 89%, 52%) 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 15px rgba(28, 100, 242, 0.3) !important;
}

.dh-btn-save:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 5px rgba(28, 100, 242, 0.2) !important;
}

.dh-btn-save i {
    font-size: 1.1rem !important;
    color: #ffffff !important;
}

.dh-btn-delete {
    background-color: transparent !important;
    border: 1px solid var(--danger) !important;
    color: var(--danger) !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    padding: 8px 16px !important;
    font-size: 0.875rem !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s ease-in-out !important;
    text-decoration: none !important;
    cursor: pointer !important;
}

.dh-btn-delete:hover {
    background-color: hsla(350, 78%, 43%, 0.05) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
    transform: translateY(-1px) !important;
}

.dh-btn-delete:active {
    transform: translateY(0) !important;
}

.dh-btn-delete i {
    font-size: 1.1rem !important;
    color: var(--danger) !important;
}


/* --- Dashboard Layout --- */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

/* --- Premium Sidebar (Clean Light Mode) --- */
.premium-sidebar {
    width: 280px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
    transition: width 0.3s ease;
}

.sidebar-header {
    padding: 16.5px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-header .brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -1px;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 12px;
    margin: 0;
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.1) transparent;
}

/* Custom premium scrollbar for sidebar menu */
.sidebar-menu::-webkit-scrollbar {
    width: 6px;
}

.sidebar-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.sidebar-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

.menu-item {
    margin-bottom: 8px;
    position: relative;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    gap: 0;
}

.menu-link-label {
    flex: 1 1 auto;
    min-width: 0;
}

.sidebar-ticket-count {
    margin-left: auto;
    flex: 0 0 auto;
    font-size: 0.6875rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.2rem 0.45rem;
    min-width: 1.35rem;
    text-align: center;
    pointer-events: none;
}

.menu-link i {
    margin-right: 12px;
    font-size: 1.2rem;
}

.menu-link:hover,
.menu-item.active .menu-link {
    background: hsla(217, 89%, 48%, 0.06);
    color: var(--primary);
    box-shadow: none;
}

.menu-item.active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
}

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

/* --- Main Content Area --- */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 0;
    transition: margin-left 0.3s ease;
    min-width: 0;
}

/* --- Dashboard Header --- */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.dash-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

/* --- Metric Cards Grid --- */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-color-glow);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.04);
}

.metric-info h3 {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    font-weight: 600;
}

.metric-info .value {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-main);
}

.metric-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(28, 100, 242, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
}

.metric-card:nth-child(2) .metric-icon {
    background: rgba(102, 51, 255, 0.05);
    color: var(--accent);
}

.metric-card:nth-child(3) .metric-icon {
    background: rgba(16, 124, 65, 0.05);
    color: var(--success);
}

.metric-card:nth-child(4) .metric-icon {
    background: rgba(223, 142, 4, 0.05);
    color: var(--warning);
}

/* --- Dashboard Modules Grid --- */
.modules-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

@media (max-width: 992px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
}

.premium-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.card-header-flex h4 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-main);
}

/* --- Styled Tables --- */
.premium-table-container {
    overflow-x: auto;
}

.premium-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-main);
}

.premium-table th {
    padding: 16px;
    text-align: left;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.premium-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    color: var(--text-main);
}

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

.premium-table tr {
    transition: background-color 0.2s;
}

.premium-table tr:hover {
    background-color: rgba(0, 0, 0, 0.015);
}

/* --- Badges --- */
.badge-premium {
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-success {
    background: rgba(16, 124, 65, 0.12);
    color: var(--success);
}

.badge-warning {
    background: rgba(223, 142, 4, 0.12);
    color: var(--warning);
}

.badge-info {
    background: rgba(28, 100, 242, 0.12);
    color: var(--primary);
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .premium-sidebar {
        width: 0;
        overflow: hidden;
        border-right: none;
    }

    .main-content {
        margin-left: 0;
        padding: 20px;
    }
}

/* --- Top Header Navigation Panel --- */
.top-nav-panel {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.dropdown-menu {
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    background-color: var(--bg-card) !important;
    border-radius: 12px !important;
    padding: 6px !important;
    margin-top: 8px !important;
    animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top right;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    margin-top: -10px !important;
}
    .dropdown-menu.show {
        opacity: 1 !important;
        visibility: visible !important;
        margin-top: 8px !important;
    }
@keyframes dropdownFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--text-main) !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: hsla(217, 89%, 48%, 0.06) !important;
    color: var(--primary) !important;
}

.dropdown-divider {
    border-color: var(--border-color) !important;
    margin: 6px 0 !important;
}

.rounded-12 {
    border-radius: 12px !important;
}

.swal2-popup .swal2-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 1.5rem;
    height: 1.5rem;
    margin: 0;
    padding: 0;
    font-size: 1.5rem;
    line-height: 1.5rem;
    color: #64748b;
    transition: color 0.15s ease;
}

.swal2-popup .swal2-close:hover {
    color: #1e293b;
    background: transparent;
}

.swal2-popup .swal2-close:focus {
    box-shadow: none;
}

.rounded-8 {
    border-radius: 8px !important;
}

.fs-7 {
    font-size: 0.85rem !important;
}

.fs-8 {
    font-size: 0.75rem !important;
}

.lh-1 {
    line-height: 1 !important;
}

.font-weight-500 {
    font-weight: 500 !important;
}

.font-weight-600 {
    font-weight: 600 !important;
}

.font-weight-700 {
    font-weight: 700 !important;
}


/* ════════════════════════════════════════════════════════
   GENTELELLA-STYLE COMPONENTS
   ════════════════════════════════════════════════════════ */

/* ── Page Title Breadcrumb Bar ── */
.page-title {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.page-title .title_left h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.page-title .title_right {
    display: flex;
    align-items: center;
}

.page-title .breadcrumb {
    margin: 0;
    background: transparent;
    font-size: 0.82rem;
}

.page-title .breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.page-title .breadcrumb-item.active {
    color: var(--text-muted);
}

/* ── X_Panel (Gentelella card) ── */
.x_panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 24px;
    position: relative;
}

.x_title {
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.x_title h2 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    flex: 0 0 auto;
}

.x_title .x_nav_tabs {
    border-bottom: none;
    gap: 4px;
}

.x_title .x_nav_tabs .nav-link {
    font-size: 0.8rem;
    padding: 5px 14px;
    border-radius: 6px 6px 0 0;
    color: var(--text-muted);
    border: 1px solid transparent;
    font-weight: 500;
}

.x_title .x_nav_tabs .nav-link.active {
    color: var(--primary);
    background: #f0f5ff;
    border-color: var(--border-color) var(--border-color) #fff;
}

.x_title .x_nav_tabs .nav-link:hover:not(.active) {
    background: var(--bg-main);
    color: var(--text-main);
}

.x_content {
    padding: 20px;
}

/* ── Profile Info Panel ── */
.profile-info-panel {}

.profile_img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #e5e9f0;
    display: block;
    margin: 0 auto;
}

.profile_img_placeholder {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    border: 3px solid #e5e9f0;
    margin: 0 auto;
}

.profile_name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
}

.profile_email {
    font-size: 0.8rem;
    margin: 2px 0 0;
}

.profile_role {
    margin-top: 6px;
}

.badge-role {
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.badge-dept {
    background: #ecfdf5;
    color: #065f46;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
}

.user_data li {
    font-size: 0.82rem;
    border-bottom: 1px dashed var(--border-color);
}

.user_data li:last-child {
    border-bottom: none;
}

/* ── Form helpers ── */
.control-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #73879c;
    margin-bottom: 5px;
    display: block;
}

.control-label .required {
    color: var(--danger);
}

.form-group {
    margin-bottom: 16px;
}

.ln_solid {
    border-top: 1px solid var(--border-color);
}

/* ── Section divider title ── */
.section-divider-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #73879c;
    border-bottom: 1px solid #e5e9f0;
    padding-bottom: 8px;
    margin: 4px 0 16px;
}

/* ── Avatar upload zone ── */
.avatar-upload-zone {
    min-height: 120px;
    cursor: pointer;
    border: 2px dashed #c8d0da !important;
    border-radius: 8px;
    transition: border-color 0.2s, background 0.2s;
    background: #f8fafc;
    padding: 1rem;
}

.avatar-upload-zone:hover {
    border-color: #26b99a !important;
    background: #f0fdf9;
}

/* ── Soft alerts ── */
.alert-info-soft {
    background: #eef4ff;
    color: #1e40af;
}

.alert-warning-soft {
    background: #fffbeb;
    color: #92400e;
}

/* ── Clearfix ── */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ════════════════════════════════════════════════════════
   PROFILE REDESIGN (CLEAN & PROFESSIONAL SINGLE CARD)
   ════════════════════════════════════════════════════════ */
.profile-banner-premium {
    height: 160px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
}

.profile-banner-premium::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
}

.profile-avatar-container-premium {
    position: relative;
    width: 120px;
    height: 120px;
    margin-top: -60px;
}

.profile-avatar-main-premium {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-card);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    background-color: var(--primary);
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-camera-btn-premium {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5;
}

.profile-camera-btn-premium:hover {
    background: var(--primary-glow);
    border-color: var(--primary);
    transform: scale(1.05);
}

.profile-camera-btn-premium i {
    color: var(--primary);
    font-size: 1.1rem;
}

.profile-header-details-premium {
    margin-bottom: 15px;
}

.profile-tab-nav {
    border-bottom: 1px solid var(--border-color);
    padding: 0 24px;
    background: hsla(220, 20%, 97%, 0.4);
    gap: 8px;
}

.profile-tab-nav .nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 14px 20px;
    border-radius: 0;
    transition: all 0.2s ease;
    background: none;
}

.profile-tab-nav .nav-link:hover {
    color: var(--text-main);
    background: none;
}

.profile-tab-nav .nav-link.active {
    color: var(--primary) !important;
    background: none !important;
    border-bottom-color: var(--primary);
}

.profile-tab-content-premium {
    padding: 30px;
    background: var(--bg-card);
}

.premium-label-styled {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 8px;
    display: block;
}

.profile-footer-premium {
    padding: 20px 30px;
    background: hsla(220, 20%, 97%, 0.4);
    border-top: 1px solid var(--border-color);
}

/* --- Mockup Profile Card Layout Styles --- */
.card.card-outline {
    background: #ffffff;
    border: 1px solid #d2d6de;
    border-radius: 4px !important;
}
.card-outline.card-primary {
    border-top: 3px solid #007bff !important;
}
.card-outline.card-warning {
    border-top: 3px solid #ffc107 !important;
}
.btn-success-lte {
    background-color: #008d4c !important;
    border-color: #00733e !important;
    color: #fff !important;
}
.btn-success-lte:hover {
    background-color: #00733e !important;
    border-color: #005c31 !important;
}

/* --- Clickable Avatar Upload System --- */
.avatar-upload-container {
    position: relative;
    width: 90px;
    height: 90px;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #dee2e6;
    transition: all 0.3s ease;
}
.avatar-upload-container:hover {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.15);
}
.avatar-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    font-size: 0.72rem;
    font-weight: 600;
}
.avatar-upload-container:hover .avatar-upload-overlay {
    opacity: 1;
}


/* --- Modern Skeleton Page Loader --- */
.page-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
}
.skeleton-loader {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.04) 25%, rgba(0, 0, 0, 0.08) 37%, rgba(0, 0, 0, 0.04) 63%);
    background-size: 400% 100%;
    animation: shimmer-load 1.4s ease infinite;
    border-radius: 6px;
}
.skeleton-loader.line-lg {
    height: 32px;
    width: 45%;
}
.skeleton-loader.line-md {
    height: 18px;
    width: 100%;
}
.skeleton-loader.line-sm {
    height: 18px;
    width: 75%;
}
.skeleton-loader.card-skeleton {
    height: 240px;
    width: 100%;
    border-radius: 12px;
}

@keyframes shimmer-load {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ════════════════════════════════════════════════════════
   STANDARDIZED LIST CARD  (full-width, no side gap)
   ════════════════════════════════════════════════════════ */

/* The list-card spans the full content-body without extra side padding */
.dh-list-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    margin-bottom: 24px;
}

/* Card header bar */
.dh-list-card-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 52px;
}

/* Card header title */
.dh-list-card-header .dh-list-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

/* ── Standardized Data Table ─────────────────────────── */
.dh-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
    color: var(--text-main);
}

.dh-table thead tr {
    background-color: #f8fafc;
}

.dh-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.dh-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

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

/* ── Clickable rows (Google-style) ───────────────────── */
.dh-table tbody tr.dh-row-clickable {
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
    position: relative;
}

/* Subtle hover — indicates row is clickable */
.dh-table tbody tr.dh-row-clickable:hover {
    background-color: #f0f7ff;
}

/* Active / pressed state — Google ripple-like feedback */
.dh-table tbody tr.dh-row-clickable:active {
    background-color: #dbeafe;
}

/* The "primary" column that looks like a link (Google blue) */
.dh-table tbody tr.dh-row-clickable td.dh-col-primary {
    color: hsl(217, 89%, 42%);
    font-weight: 600;
   
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.15s ease, color 0.15s ease;
}
    .dh-table tbody tr:hover .text-truncate {
        text-decoration: underline;
    }
    .dh-table tbody tr.dh-row-clickable:hover td.dh-col-primary {
        text-decoration-color: hsl(217, 89%, 42%);
        color: hsl(217, 89%, 35%);
    }

/* ── Empty-state placeholder ─────────────────────────── */
.dh-empty-state {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
}

.dh-empty-state i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    opacity: 0.4;
}

.dh-empty-state p {
    font-size: 0.9rem;
    margin: 0;
}

/* ════════════════════════════════════════════════════════
   GLOBAL PAGINATION BAR
   ════════════════════════════════════════════════════════ */
.dh-pagination-bar {
    padding: 10px 16px;
    border-top: 1px solid var(--border-color);
    background-color: #f8fafc;
    flex-wrap: wrap;
    gap: 8px;
}

.dh-pagination-info {
    font-size: 0.8rem;
}

/* Override Bootstrap page-link for our design */
.dh-page-link {
    color: #475569 !important;
    border-color: #e2e8f0 !important;
    border-radius: 6px !important;
    font-size: 0.8rem;
    padding: 4px 9px;
    margin: 0 1px;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.dh-page-link:hover {
    background-color: #eff6ff !important;
    color: hsl(217, 89%, 48%) !important;
    border-color: #bfdbfe !important;
}

/* Active page */
.page-item.active .dh-page-link,
.dh-page-link.dh-page-active {
    background-color: hsl(217, 89%, 48%) !important;
    border-color: hsl(217, 89%, 48%) !important;
    color: #fff !important;
    font-weight: 600;
}

/* Disabled state */
.page-item.disabled .dh-page-link {
    color: #cbd5e1 !important;
    border-color: #f1f5f9 !important;
    pointer-events: none;
}

/* ════════════════════════════════════════════════════════
   CENTERED USER MODAL  (dh-user-modal-*)
   ════════════════════════════════════════════════════════ */

/* Dialog width — comfortable for a form */
.dh-user-modal-dialog {
    max-width: 850px;
    margin: auto;
}

/* Content card styling */
.dh-user-modal-content {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Header — #f8fafc background, bottom border */
.dh-user-modal-header {
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    padding: 14px 20px;
    align-items: center;
}

.dh-user-modal-header .modal-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Scrollable body with comfortable padding */
.dh-user-modal-body {
    padding: 24px;
    max-height: 72vh;
    overflow-y: auto;
}

/* Custom scrollbar in modal body */
.dh-user-modal-body::-webkit-scrollbar {
    width: 5px;
}
.dh-user-modal-body::-webkit-scrollbar-track {
    background: transparent;
}
.dh-user-modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

/* ── Shake animation for outside-click feedback ── */
@keyframes dh-shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-8px); }
    30%       { transform: translateX(8px); }
    45%       { transform: translateX(-6px); }
    60%       { transform: translateX(6px); }
    75%       { transform: translateX(-3px); }
    90%       { transform: translateX(3px); }
}

.dh-modal-shake {
    animation: dh-shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ══════════════════════════════════════════════════════
   GLOBAL SLEEK & COMPACT FORM INPUTS (DHUMKETU)
   ══════════════════════════════════════════════════════ */

.premium-input,
.form-control,
.form-select {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
    height: 38px !important;
    border: 1px solid #cbd5e1 !important;
}

/* Filter clear — matches adjacent inputs; red outline signals a reset action */
.dh-filter-clear-btn {
    height: 38px !important;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500 !important;
    border-radius: 6px !important;
    background-color: #fff !important;
    color: var(--danger) !important;
    border: 1px solid hsl(350, 55%, 82%) !important;
    box-shadow: none !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.dh-filter-clear-btn:hover,
.dh-filter-clear-btn:focus,
.dh-filter-clear-btn:focus-visible {
    background-color: hsl(350, 78%, 97%) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 0.25rem hsla(350, 78%, 43%, 0.18) !important;
}

.dh-filter-clear-btn:active {
    background-color: hsl(350, 78%, 94%) !important;
    color: var(--danger) !important;
    border-color: var(--danger) !important;
}

textarea.form-control {
    height: auto !important;
    min-height: 80px;
}

.select2-container--bootstrap-5 .select2-selection {
    display: flex !important;
    align-items: center !important;
    min-height: 38px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    font-size: 0.875rem !important;
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    color: #212529 !important;
    padding-left: 0.75rem !important;
    line-height: 36px !important;
}

.premium-label {
    font-size: 0.75rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px !important;
    color: #475569;
    display: inline-block;
}

.row.g-3 {
    --bs-gutter-y: 0.85rem !important;
    --bs-gutter-x: 0.85rem !important;
}

/* --- Notification Unread Indicator Dot --- */
.notification-unread-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    top: 2px;
    right: 1px;
    pointer-events: none;
}

.notification-unread-dot:empty {
    display: none !important;
}

.notification-unread-dot .notification-unread-indicator {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--danger, #dc3545);
    border: 2px solid var(--bg-card, #fff);
}

#notification-unread-badge {
    position: absolute;
    width: 8px;
    height: 8px;
    top: 6px;
    right: 6px;
    background-color: var(--danger);
    border-radius: 50%;
    border: 1.5px solid var(--bg-card);
    font-size: 0 !important;
    color: transparent !important;
    overflow: hidden;
    display: inline-block;
}
#notification-unread-badge:empty {
    display: none !important;
}

/* --- Skeleton Shimmer Animation --- */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.shimmer-bar {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%) !important;
    background-size: 200% 100% !important;
    animation: shimmer 1.5s infinite linear !important;
}

/* --- List Container Loading Overlay --- */
.list-loading {
    position: relative !important;
    pointer-events: none !important;
}

/* --- Smart Save Button --- */
.btn-save-smart {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(10px) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.valueSetting-row.is-dirty .btn-save-smart {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
}

/* Remove default Bootstrap 5 focus highlight on inputs */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.form-range:focus {
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* Remove default Select2 focus highlight */
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection,
.select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field:focus {
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    outline: 0 !important;
}

/* ════════════════════════════════════════════════════════
   PREMIUM FULLCALENDAR CUSTOM STYLING
   ════════════════════════════════════════════════════════ */
.fc {
    font-family: 'Outfit', sans-serif;
    --fc-border-color: hsl(214, 15%, 89%);
    --fc-today-bg-color: hsla(217, 89%, 48%, 0.04);
    --fc-button-bg-color: var(--primary);
    --fc-button-border-color: var(--primary);
    --fc-button-hover-bg-color: hsl(217, 89%, 40%);
    --fc-button-hover-border-color: hsl(217, 89%, 40%);
    --fc-button-active-bg-color: hsl(217, 89%, 35%);
    --fc-button-active-border-color: hsl(217, 89%, 35%);
    --fc-event-bg-color: hsla(217, 89%, 48%, 0.08);
    --fc-event-border-color: var(--primary);
    --fc-event-text-color: var(--primary);
}

/* Header & Title */
.fc .fc-toolbar-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Toolbar Buttons */
.fc .fc-button {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 8px !important;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    text-transform: capitalize;
}

.fc .fc-button:focus {
    box-shadow: 0 0 0 3px var(--primary-glow) !important;
}

.fc .fc-button-primary {
    background-color: var(--bg-card);
    border-color: var(--border-color);
    color: var(--text-muted);
}

.fc .fc-button-primary:hover {
    background-color: var(--bg-main);
    border-color: var(--border-color);
    color: var(--text-main);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Day Grid Headers */
.fc .fc-col-header {
    background-color: #f8fafc;
}

.fc .fc-col-header-cell {
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
}

.fc .fc-col-header-cell-cushion {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Day Cells */
.fc .fc-daygrid-day {
    transition: background-color 0.15s ease;
}

.fc .fc-daygrid-day:hover {
    background-color: hsla(220, 20%, 97%, 0.5);
}

.fc .fc-daygrid-day-number {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 8px 12px !important;
    text-decoration: none !important;
}

.fc .fc-daygrid-day.fc-day-today {
    background-color: var(--fc-today-bg-color);
}

.fc .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
    font-weight: 700;
    color: var(--primary);
    background-color: var(--primary-glow);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin: 4px 8px;
    padding: 0 !important;
}

/* Events Styling */
.fc-event {
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    border-left: 3px solid var(--fc-event-border-color) !important;
    background-color: var(--fc-event-bg-color) !important;
    border-top: none !important;
    border-right: none !important;
    border-bottom: none !important;
    margin: 2px 4px !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    cursor: pointer !important;
}

.fc-event:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    filter: brightness(0.95);
}

.fc-event .fc-event-title {
    font-weight: 600;
}

/* Custom event styling for tasks */
.fc-event.fc-event-task {
    --fc-event-border-color: var(--success) !important;
    --fc-event-bg-color: hsla(142, 72%, 29%, 0.08) !important;
    --fc-event-text-color: var(--success) !important;
    border-left: 3px solid var(--success) !important;
    background-color: hsla(142, 72%, 29%, 0.08) !important;
    color: var(--success) !important;
}

.fc-event.fc-event-task .fc-event-title,
.fc-event.fc-event-task .fc-event-main,
.fc-event.fc-event-task .fc-event-title-container {
    color: var(--success) !important;
}

/* Scrollgrid Borders */
.fc-theme-standard .fc-scrollgrid {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

/* My Tickets Tab Filter Styling */
#myTicketsFilterTabs .nav-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
    border-radius: 0 !important;
}

#myTicketsFilterTabs .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    border-radius: 3px 3px 0 0;
    transition: background-color 0.2s ease-in-out;
}

#myTicketsFilterTabs .nav-link:hover {
    color: var(--text-main);
    background-color: transparent !important;
}

#myTicketsFilterTabs .nav-link.active {
    color: var(--primary) !important;
    background-color: transparent !important;
    font-weight: 700 !important;
}

#myTicketsFilterTabs .nav-link.active::after {
    background: linear-gradient(90deg, var(--primary), var(--accent)) !important;
}
