/* Premium Dark Mode Design System — LRS Management System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #060913;
    --bg-card: rgba(13, 20, 38, 0.7);
    --bg-sidebar: #03050b;
    --text-main: #f8fafc;
    --text-muted: #64748b;
    --primary: #38bdf8;          /* Sky Blue */
    --primary-hover: #0ea5e9;
    --success: #34d399;          /* Mint Green */
    --danger: #f87171;           /* Rose Coral */
    --accent: #fbbf24;           /* Warm Amber */
    --border-color: rgba(255, 255, 255, 0.08);
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --glow-primary: rgba(56, 189, 248, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    letter-spacing: -0.01em;
    position: relative;
}

/* Moving organic blurred color mesh background */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: 
        radial-gradient(circle at 15% 25%, rgba(56, 189, 248, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(99, 102, 241, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.07) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 211, 153, 0.05) 0%, transparent 40%);
    filter: blur(60px);
    animation: moveGradients 25s infinite alternate ease-in-out;
    pointer-events: none;
}

/* High-tech dot matrix overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-image: radial-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.8;
    pointer-events: none;
}

@keyframes moveGradients {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(40px, -60px) scale(1.08);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.92);
    }
    100% {
        transform: translate(20px, -20px) scale(1.04);
    }
}

/* Layout Container */
.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar Styling */
.sidebar {
    width: 260px;
    background-color: rgba(3, 5, 11, 0.65);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    margin: 1.25rem 0 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    transition: var(--transition);
    height: calc(100vh - 2.5rem);
}

/* Sidebar Header & Logo Futuristic */
.sidebar-header {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-futuristic {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
    width: 100%;
}

.logo-icon-wrapper {
    position: relative;
    width: 105px;
    height: 105px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    border: 2px solid rgba(56, 189, 248, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
    animation: pulseGlow 3s infinite ease-in-out;
    overflow: hidden;
}

.logo-glow {
    color: var(--primary);
    font-size: 1.25rem;
    filter: drop-shadow(0 0 4px var(--primary));
}

.logo-video-player {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-divider {
    width: 70px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 2px;
    margin-top: 0.6rem;
}

@keyframes pulseGlow {
    0%, 100% {
        border-color: rgba(56, 189, 248, 0.3);
        box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
    }
    50% {
        border-color: rgba(56, 189, 248, 0.6);
        box-shadow: 0 0 25px rgba(56, 189, 248, 0.35);
    }
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.brand-lrs {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
}

/* Digital Clock Styling */
.digital-clock-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(13, 20, 38, 0.8) 0%, rgba(3, 5, 11, 0.8) 100%);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.6rem 0.85rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.clock-glow-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.clock-icon {
    font-size: 1.1rem;
    color: var(--primary);
    filter: drop-shadow(0 0 3px var(--primary));
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.clock-info {
    display: flex;
    flex-direction: column;
}

.clock-time {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace; /* Digital monospace look */
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.clock-date {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.nav-links {
    list-style: none;
    flex: 1;
}

.nav-links li {
    margin-bottom: 0.4rem;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links li.active > a {
    background-color: rgba(56, 189, 248, 0.08);
    color: var(--primary);
    box-shadow: inset 3px 0 0 0 var(--primary);
}

.sidebar-footer a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.sidebar-footer a:hover {
    color: var(--danger);
    background-color: rgba(248, 113, 113, 0.08);
    border-radius: 10px;
}

/* Main Content Styling */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: transparent;
    padding: 1.25rem 1.25rem 1.25rem 1.25rem;
}

/* Header Styling */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(13, 20, 38, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: rgba(13, 20, 38, 0.5);
    padding: 0.6rem 1rem;
    border-radius: 10px;
    width: 350px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.search-bar:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
    background-color: rgba(13, 20, 38, 0.8);
}

.search-bar i {
    color: var(--text-muted);
    margin-right: 0.8rem;
}

.search-bar input {
    background: transparent;
    border: none;
    color: var(--text-main);
    outline: none;
    width: 100%;
    font-family: var(--font-family);
    font-size: 0.9rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.notification {
    position: relative;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.notification:hover {
    color: var(--primary);
}

.notification .badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background-color: var(--danger);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--danger);
}

.user-profile img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.user-profile span {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Content Body */
.content-body {
    padding: 0;
}

.page-title {
    font-size: 1.9rem;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* KPI Cards */
.kpi-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: 0 20px 30px -10px rgba(56, 189, 248, 0.15), 0 10px 15px -5px rgba(56, 189, 248, 0.1);
}

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    transform: scale(1.1);
}

.card-icon.blue {
    background-color: rgba(56, 189, 248, 0.1);
    color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.05);
}

.card-icon.red {
    background-color: rgba(248, 113, 113, 0.1);
    color: var(--danger);
    box-shadow: 0 0 15px rgba(248, 113, 113, 0.05);
}

.card-icon.green {
    background-color: rgba(52, 211, 153, 0.1);
    color: var(--success);
    box-shadow: 0 0 15px rgba(52, 211, 153, 0.05);
}

.card-icon.orange {
    background-color: rgba(251, 191, 36, 0.1);
    color: var(--accent);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.05);
}

.card-icon.purple {
    background-color: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.05);
}

.card-info {
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
}

.card-value {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
    letter-spacing: -0.02em;
}

.card-trend {
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-trend.positive {
    color: var(--success);
}

.card-trend.negative {
    color: var(--danger);
}

/* Charts Area */
.charts-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.chart-card {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.chart-header h3 {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.btn-more {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-more:hover {
    color: var(--primary);
}

.chart-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
}

/* Submenu Styling */
.has-dropdown > a {
    justify-content: space-between;
    cursor: pointer;
}

.sidebar-link-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dropdown-icon {
    font-size: 0.75rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding-left: 2rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-dropdown.open .submenu {
    max-height: 250px;
}

.submenu li {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
}

.submenu a {
    padding: 0.5rem 1rem;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.submenu a::before {
    content: '\f111';
    font-family: 'FontAwesome';
    font-size: 0.35rem;
    margin-right: 0.6rem;
    display: inline-block;
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.15);
    transition: var(--transition);
}

.submenu a:hover,
.submenu a.active-text {
    color: var(--primary);
}

.submenu a:hover::before,
.submenu a.active-text::before {
    color: var(--primary);
    text-shadow: 0 0 6px var(--primary);
}

/* Views Toggle */
.view-section {
    display: none;
    animation: fadeIn 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.view-section.active-view {
    display: block;
}

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

/* Premium Table Styling */
.table-container {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.table-header h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.65rem 1.3rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(14, 165, 233, 0.35);
}

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

.premium-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.premium-table th,
.premium-table td {
    padding: 1rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.premium-table th {
    background-color: rgba(255, 255, 255, 0.02);
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
}

.premium-table tbody tr {
    transition: var(--transition);
}

.premium-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-block;
}

.badge-success {
    background: rgba(52, 211, 153, 0.12);
    color: var(--success);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-primary {
    background: rgba(56, 189, 248, 0.12);
    color: var(--primary);
    border: 1px solid rgba(56, 189, 248, 0.2);
}

.badge-danger {
    background: rgba(248, 113, 113, 0.12);
    color: var(--danger);
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.badge-warning {
    background: rgba(251, 191, 36, 0.12);
    color: var(--accent);
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.action-btns {
    display: flex;
    gap: 0.4rem;
}

.btn-action {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0.45rem 0.65rem;
    transition: var(--transition);
    border-radius: 8px;
}

.btn-action.edit {
    color: var(--success);
}

.btn-action.delete {
    color: var(--danger);
}

.btn-action:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Modal Styling */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 5, 11, 0.8);
    backdrop-filter: blur(8px);
    z-index: 100;
    align-items: center;
    justify-content: center;
    animation: fadeInModal 0.25s ease-out;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background-color: rgba(13, 20, 38, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 92%;
    max-width: 520px;
    padding: 2.2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    transform: scale(0.95) translateY(-10px);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.show .modal-content {
    transform: scale(1) translateY(0);
}

@keyframes fadeInModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-main);
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

.form-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-input {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border-radius: 10px;
    background-color: rgba(3, 5, 11, 0.4);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
    background-color: rgba(3, 5, 11, 0.6);
}

/* === Horizontal Scroll Table Wrapper === */
.table-scroll-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255,255,255,0.02);
}

.table-scroll-wrapper::-webkit-scrollbar {
    height: 6px;
}

.table-scroll-wrapper::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 0 0 16px 16px;
}

.table-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary);
    border-radius: 6px;
}

.table-scroll-wrapper .premium-table {
    margin: 0;
}

/* Wide table for many columns (Souvenir) */
.wide-table {
    min-width: 1400px;
}

.wide-table th,
.wide-table td {
    min-width: 90px;
    text-align: center;
}

.wide-table .col-no {
    min-width: 50px;
}

.wide-table .col-jenis {
    min-width: 160px;
    text-align: left;
}

.wide-table .col-aksi {
    min-width: 100px;
}

.table-scroll-wrapper .premium-table th,
.table-scroll-wrapper .premium-table td {
    padding: 0.9rem 0.7rem;
}

/* Wide Modal (for Souvenir 12-bulan form) */
.modal-wide {
    max-width: 720px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .charts-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
    }

    .nav-links {
        display: flex;
        overflow-x: auto;
        gap: 0.5rem;
    }

    .nav-links li {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .nav-links a {
        padding: 0.6rem 1rem;
        font-size: 0.88rem;
    }

    .main-content {
        height: 100%;
    }
}

/* Filter & Action Bar Premium Styling */
.filter-action-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    flex-wrap: wrap;
    transition: var(--transition);
}

.filter-action-bar:hover {
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.05);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex: 1;
    flex-wrap: wrap;
}

.filter-control {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.filter-control label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.filter-control label i {
    color: var(--primary);
}

.filter-select {
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    background-color: rgba(3, 5, 11, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    cursor: pointer;
    min-width: 140px;
    appearance: auto;
}

.filter-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
    background-color: rgba(3, 5, 11, 0.7);
}

.search-control {
    flex: 1;
    min-width: 200px;
}

.filter-search {
    padding: 0.55rem 0.85rem;
    border-radius: 8px;
    background-color: rgba(3, 5, 11, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    width: 100%;
}

.filter-search:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
    background-color: rgba(3, 5, 11, 0.7);
}

.action-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.btn-action-bar {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.55rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action-bar:hover {
    background-color: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

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

.btn-action-bar.btn-export {
    color: var(--success);
    background-color: rgba(52, 211, 153, 0.05);
}

.btn-action-bar.btn-export:hover {
    background-color: rgba(52, 211, 153, 0.12);
    border-color: rgba(52, 211, 153, 0.25);
}

.btn-action-bar.btn-import {
    color: var(--accent);
    background-color: rgba(251, 191, 36, 0.05);
}

.btn-action-bar.btn-import:hover {
    background-color: rgba(251, 191, 36, 0.12);
    border-color: rgba(251, 191, 36, 0.25);
}

.btn-action-bar.btn-pdf {
    color: var(--danger);
    background-color: rgba(248, 113, 113, 0.05);
}

.btn-action-bar.btn-pdf:hover {
    background-color: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.25);
}

/* Print CSS */
@media print {
    body {
        background: white !important;
        color: black !important;
    }
    .sidebar, .header, .filter-action-bar, .btn-primary, .action-btns, th:last-child, td:last-child {
        display: none !important;
    }
    .main-content {
        padding: 0 !important;
    }
    .table-container, .table-scroll-wrapper {
        border: none !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    .premium-table th, .premium-table td {
        color: black !important;
        border-bottom: 1px solid #ddd !important;
    }
}

/* Consolidated Card and Breakdown Grid Styles */
.card.consolidated-card {
    grid-column: span 2;
}

@media (max-width: 1024px) {
    .card.consolidated-card {
        grid-column: span 1;
    }
}

.card-breakdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 0.85rem;
    width: 100%;
}

.breakdown-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    transition: var(--transition);
}

.breakdown-item:hover {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.2);
    transform: translateY(-2px);
}

.breakdown-label {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.15rem;
    white-space: nowrap;
}

.breakdown-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

/* Trendline Sparkline Styles */
.trendline-container {
    background-color: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    height: 160px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: var(--transition);
}

.trendline-container:hover {
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.05);
}

.trendline-chart {
    width: 100% !important;
    height: 100% !important;
}

@media print {
    .trendline-container {
        display: none !important;
    }
}