/* Purity UI Dashboard Custom Style Sheets - Vanilla CSS */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #4FD1C5;
    --primary-gradient: linear-gradient(135deg, #4FD1C5 0%, #319795 100%);
    --dark-gradient: linear-gradient(81.62deg, #313860 2.25%, #151928 79.87%);
    --bg-light: #F8F9FA;
    --card-bg: #FFFFFF;
    --text-color: #2D3748;
    --text-muted: #A0AEC0;
    --border-color: rgba(226, 232, 240, 0.8);
    --shadow-sm: 0px 3.5px 5.5px rgba(0, 0, 0, 0.02);
    --shadow-md: 0px 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 27px 0 rgba(0, 0, 0, 0.05);
    --border-radius-lg: 15px;
    --border-radius-md: 12px;
    --border-radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-color);
    overflow-x: hidden;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E0;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #A0AEC0;
}

/* Layout Containers */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    height: calc(100vh - 40px);
    position: fixed;
    top: 20px;
    left: 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar-logout {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    margin-top: 12px;
    border-top: 1px solid var(--border-color);
}

.sidebar-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

.sidebar-user-name {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-user-role {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: capitalize;
}

.sidebar-logout-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-sm);
    background: rgba(229, 62, 62, 0.08);
    border: 1px solid rgba(229, 62, 62, 0.2);
    color: #E53E3E;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.sidebar-logout-btn:hover {
    background: #E53E3E;
    color: #fff;
    border-color: #E53E3E;
}

.sidebar-logout-btn svg {
    width: 15px;
    height: 15px;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px 24px 16px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    margin-bottom: 20px;
}

.sidebar-logo svg {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.sidebar-logo span {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-grow: 1;
    overflow-y: auto;
    padding-right: 2px;
}

.sidebar-section-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    padding: 12px 16px 4px;
    opacity: 0.55;
    user-select: none;
}

.menu-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
}

.menu-item .icon-box {
    width: 30px;
    height: 30px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
}

.menu-item .icon-box svg {
    width: 15px;
    height: 15px;
}

.menu-item a:hover {
    background: var(--bg-light);
    color: var(--text-color);
}

.menu-item.active a {
    background: var(--card-bg);
    color: var(--text-color);
    box-shadow: var(--shadow-sm);
}

.menu-item.active .icon-box {
    background: var(--primary-gradient);
    color: #FFFFFF;
    border: none;
    box-shadow: 0px 4px 12px rgba(79, 209, 197, 0.4);
}

/* Sidebar Help Card */
.sidebar-help {
    background: var(--primary-gradient);
    border-radius: var(--border-radius-lg);
    padding: 16px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-top: auto;
}

.sidebar-help::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-help h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
}

.sidebar-help p {
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-help {
    display: block;
    width: 100%;
    text-align: center;
    background: #FFFFFF;
    color: var(--text-color);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    padding: 10px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

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

/* Main Area Container */
.main-content {
    flex-grow: 1;
    margin-left: 280px;
    padding: 20px;
    transition: all 0.3s ease;
}

/* Navbar / Header */
.navbar {
    position: sticky;
    top: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(21px);
    -webkit-backdrop-filter: blur(21px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    z-index: 99;
}

.navbar-breadcrumbs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.breadcrumbs-trail {
    font-size: 11px;
    color: var(--text-muted);
}

.breadcrumbs-trail a {
    color: var(--text-muted);
    text-decoration: none;
}

.breadcrumbs-trail span {
    margin: 0 4px;
}

.navbar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.5px;
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    position: relative;
    width: 200px;
}

.search-box input {
    width: 100%;
    padding: 10px 16px 10px 38px;
    border-radius: 30px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    outline: none;
    font-size: 12px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0px 0px 0px 3px rgba(79, 209, 197, 0.15);
}

.search-box svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 14px;
    height: 14px;
}

.navbar-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.navbar-btn:hover {
    color: var(--text-color);
}

.navbar-btn svg {
    width: 16px;
    height: 16px;
}

.navbar-menu-toggle {
    display: none;
}

/* Card Styling */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 22px;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
}

/* Stats Cards Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value-container {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-color);
}

.stat-trend {
    font-size: 11px;
    font-weight: 700;
}

.stat-trend.up {
    color: #48BB78;
}

.stat-trend.down {
    color: #E53E3E;
}

.stat-icon-box {
    width: 45px;
    height: 45px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    box-shadow: 0px 4px 12px rgba(79, 209, 197, 0.3);
}

.stat-icon-box svg {
    width: 20px;
    height: 20px;
}

/* Charts Grid */
.charts-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.chart-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chart-title-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-color);
}

.chart-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

.chart-card-dark {
    background: var(--dark-gradient);
    border: none;
    color: #FFFFFF;
}

.chart-card-dark .chart-title {
    color: #FFFFFF;
}

.chart-card-dark .chart-subtitle span {
    color: #4FD1C5;
    font-weight: 700;
}

.chart-canvas-container {
    height: 220px;
    position: relative;
    width: 100%;
}

.chart-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 8px;
}

.chart-stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-stat-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-stat-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.chart-stat-val {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-color);
}

.chart-card-dark .chart-stat-val {
    color: #FFFFFF;
}

/* Secondary Chart Card / Quick Actions */
.quick-actions-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-buttons-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
    justify-content: center;
}

.btn-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    text-decoration: none;
    color: var(--text-color);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: var(--card-bg);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-action-icon {
    width: 28px;
    height: 28px;
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.2s ease;
}

.btn-action:hover .btn-action-icon {
    background: var(--primary-gradient);
    color: #FFFFFF;
}

/* Table Card / Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr;
    gap: 20px;
}

.table-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow: hidden;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.purity-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.purity-table th {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

.purity-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 13px;
}

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

/* Avatar / Item Info */
.item-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-md);
    background: rgba(79, 209, 197, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

.item-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.item-title {
    font-weight: 700;
    color: var(--text-color);
}

.item-subtitle {
    font-size: 11px;
    color: var(--text-muted);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.active {
    background: #E6FFFA;
    color: #319795;
}

.badge.warning {
    background: #FEFCBF;
    color: #B7791F;
}

.badge.danger {
    background: #FED7D7;
    color: #C53030;
}

/* Progress bar inside table */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100px;
}

.progress-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-color);
}

.progress-track {
    width: 100%;
    height: 5px;
    background: #EDF2F7;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
}

/* Timeline Cards */
.timeline-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.timeline {
    position: relative;
    padding-left: 20px;
    margin-left: 10px;
    border-left: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -27px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-sm);
}

.timeline-dot.danger {
    border-color: #E53E3E;
}

.timeline-dot.warning {
    border-color: #DD6B20;
}

.timeline-dot.success {
    border-color: #38A169;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.timeline-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.timeline-time {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .charts-grid {
        grid-template-columns: 1fr;
    }
    .content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        left: -280px;
    }
    .sidebar.open {
        left: 20px;
    }
    .main-content {
        margin-left: 0;
    }
    .navbar-menu-toggle {
        display: block;
    }
    .search-box {
        width: 130px;
    }
    .navbar-actions {
        gap: 12px;
    }
    .navbar-btn span {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .navbar-actions {
        width: 100%;
        justify-content: space-between;
    }
    .search-box {
        width: calc(100% - 100px);
    }
}

/* Authentication Layout (Sign In) */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: #FFFFFF;
    position: relative;
    width: 100%;
}

.auth-form-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 10%;
    z-index: 2;
}

.auth-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.auth-header svg {
    color: var(--primary);
    width: 28px;
    height: 28px;
}

.auth-header span {
    font-weight: 700;
    font-size: 16px;
    letter-spacing: -0.5px;
    color: var(--text-color);
}

.auth-welcome {
    margin-bottom: 24px;
}

.auth-welcome h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.auth-welcome p {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 500;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 380px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-color);
}

.form-input {
    width: 100%;
    padding: 14px 20px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border-color);
    background: #FFFFFF;
    outline: none;
    font-size: 13px;
    color: var(--text-color);
    transition: all 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0px 0px 0px 3px rgba(79, 209, 197, 0.15);
}

.form-switch-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
}

/* Custom Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #E2E8F0;
    transition: .4s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.switch-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
}

.btn-signin {
    width: 100%;
    padding: 14px;
    border-radius: var(--border-radius-md);
    border: none;
    background: var(--primary-gradient);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: 0px 4px 12px rgba(79, 209, 197, 0.3);
    transition: all 0.2s ease;
    text-align: center;
    text-decoration: none;
}

.btn-signin:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px rgba(79, 209, 197, 0.4);
}

.auth-footer {
    margin-top: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

/* Right Illustration/Visual Panel */
.auth-visual-side {
    flex: 0.8;
    position: relative;
    margin: 20px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.auth-visual-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(49, 151, 149, 0.8) 0%, rgba(26, 32, 44, 0.95) 100%), url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.auth-visual-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    max-width: 320px;
    color: #FFFFFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.auth-visual-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.auth-visual-card p {
    font-size: 12px;
    opacity: 0.85;
    line-height: 1.6;
}

.form-error {
    color: #E53E3E;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
}

/* Responsive auth */
@media (max-width: 991px) {
    .auth-visual-side {
        display: none;
    }
    .auth-form-side {
        padding: 40px 5%;
    }
}

/* Profile Dropdown & Settings Menu Styles */
.profile-dropdown {
    position: relative;
    display: inline-block;
}

.profile-trigger {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 14px 6px 6px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.profile-trigger:hover, .profile-trigger.active {
    border-color: var(--primary);
    box-shadow: 0px 4px 10px rgba(79, 209, 197, 0.1);
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-color);
}

.profile-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    animation: slideDown 0.15s ease-out;
}

.profile-menu.open {
    display: flex;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-menu-header {
    padding: 14px 16px;
    background: rgba(226, 232, 240, 0.2);
}

.profile-menu-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-color);
}

.profile-menu-role {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 600;
}

.profile-menu-divider {
    height: 1px;
    background: var(--border-color);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    width: 100%;
    border: none;
    background: none;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-color);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s ease;
}

.profile-menu-item:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.profile-menu-logout {
    color: #E53E3E;
}

.profile-menu-logout:hover {
    background: rgba(229, 62, 62, 0.05);
    color: #E53E3E;
}

/* Pagination Styling */
.pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    list-style: none;
    gap: 8px;
    padding: 10px 0;
    margin: 0;
}

.page-item {
    display: inline-block;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--border-radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.page-item.active .page-link {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0px 4px 10px rgba(79, 209, 197, 0.3);
}

.page-item.disabled .page-link {
    color: var(--text-muted);
    background: transparent;
    border-color: var(--border-color);
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Responsive Helper Classes for Paginator (Bootstrap compatibility) */
.d-none {
    display: none !important;
}

.d-flex {
    display: flex !important;
}

.flex-fill {
    flex: 1 1 auto !important;
    width: 100% !important;
}

.justify-content-between {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
}

.align-items-center {
    align-items: center !important;
}

/* Mobile-first: hide desktop wrapper, show mobile default */
@media (max-width: 767.98px) {
    .d-md-none {
        display: block !important;
    }
    .d-md-flex {
        display: none !important;
    }
}

/* Tablet & Desktop: show desktop wrapper, hide mobile default */
@media (min-width: 768px) {
    .d-none {
        display: none !important;
    }
    .d-md-flex {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    .d-md-none {
        display: none !important;
    }
}

/* Extra small screen helper fallback */
@media (max-width: 575.98px) {
    .d-sm-none {
        display: none !important;
    }
}

@media (min-width: 576px) {
    .d-sm-flex {
        display: flex !important;
    }
    .d-sm-none {
        display: none !important;
    }
}

nav[role="navigation"], nav.d-flex {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}



