:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --surface: rgba(255, 255, 255, 0.92);
}

body {
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 28%), linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    min-height: 100vh;
    font-family: "Segoe UI", Roboto, sans-serif;
    color: #334155;
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

.navbar-brand {
    padding: 0.2rem 0;
    font-size: 0.95rem;
}

.brand-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.brand-title {
    font-size: 0.95rem;
}

.navbar-nav .nav-link {
    color: #475569;
    font-weight: 500;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    transition: all 0.2s ease;
    margin: 0 0.1rem;
    font-size: 0.92rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary) !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.10), rgba(59, 130, 246, 0.16));
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.navbar-nav .nav-link.master-data-toggle.active,
.navbar-nav .nav-link.master-data-toggle:hover,
.navbar-nav .nav-link.master-data-toggle:focus,
.nav-item.dropdown.show > .master-data-toggle {
    color: #ffffff !important;
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.24);
}

.master-data-toggle {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(5, 150, 105, 0.22));
    border: 1px solid rgba(5, 150, 105, 0.24);
    color: #065f46 !important;
    font-weight: 500;
    position: relative;
    text-shadow: none;
    border-radius: 999px;
}

.master-data-toggle:hover,
.master-data-toggle:focus,
.master-data-toggle.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.24);
}

.dropdown-menu {
    border-radius: 0.9rem;
    padding: 0.4rem;
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.16);
}

.dropdown-menu .dropdown-item {
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
    font-weight: 600;
    color: #334155;
    background-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: #eef4ff;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.16);
    font-weight: 600;
}

.dropdown-menu .dropdown-item.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: inset 0 0 0 1px rgba(5, 150, 105, 0.18);
    font-weight: 600;
}

.admin-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(5, 150, 105, 0.16);
    color: #047857;
    vertical-align: middle;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.navbar-toggler {
    border: 0;
    padding: 0.4rem 0.6rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.hero-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #3b82f6 100%);
    border-radius: 1.5rem;
    color: white;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.25);
}

.page-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 70%, #3b82f6 100%);
    border-radius: 1.25rem;
    color: white;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.18);
}

.card-soft,
.chart-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
}

.chart-donut {
    width: 172px;
    height: 172px;
    border-radius: 50%;
    background: conic-gradient(#2563eb 0 72%, #38bdf8 72% 86%, #f59e0b 86% 100%);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.75), 0 18px 35px rgba(37, 99, 235, 0.18);
}

.chart-donut::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 50%;
    background: white;
}

.chart-donut-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.chart-donut-inner strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary);
}

.chart-donut-inner small {
    color: #64748b;
}

.mini-stat {
    border-radius: 0.9rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 100%);
    padding: 0.9rem 1rem;
}

.menu-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 0;
    min-height: 220px;
    background: var(--surface);
    backdrop-filter: blur(8px);
}

.menu-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.menu-icon {
    width: 58px;
    height: 58px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(59, 130, 246, 0.25));
    color: var(--primary);
    font-size: 1.45rem;
}

.section-title {
    color: #334155;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.readonly-look {
    background-color: #e9ecef;
    opacity: 1;
}

.form-section {
    border: 1px solid #e2e8f0;
    border-radius: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    width: 100%;
    max-width: 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    min-height: 220px;
    margin-top: 1rem;
}

.chart-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
}

.chart-bar-track {
    width: 100%;
    height: 180px;
    max-width: 44px;
    background: linear-gradient(180deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 999px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.chart-bar-fill {
    width: 100%;
    background: linear-gradient(180deg, #f59e0b 0%, #fb7185 30%, #38bdf8 70%, #2563eb 100%);
    border-radius: 999px;
    min-height: 6px;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
    transition: transform 0.2s ease;
}

.chart-bar-col:hover .chart-bar-fill {
    transform: scaleY(1.04);
}

.chart-bar-label {
    font-size: 0.78rem;
    color: #64748b;
    text-align: center;
}

.chart-bar-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1d4ed8;
}

.chart-card .badge {
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.12);
}

.chart-card .card-body {
    position: relative;
}

.chart-card .card-body::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(37, 99, 235, 0.04), transparent 40%);
    pointer-events: none;
}

.table thead th {
    background: #eaf2ff;
    color: #1d4ed8;
    font-weight: 600;
}

.table td,
.table th {
    color: #334155;
}

.table tbody tr {
    background-color: #ffffff;
}

.table tbody tr:nth-of-type(odd) {
    background-color: #f8fbff;
}

.table tbody tr:hover {
    background-color: #eef6ff;
}

.sticky-action {
    position: sticky;
    right: 0;
    background: white;
    z-index: 10;
    border-left: 2px solid #dee2e6;
    box-shadow: -5px 0 10px rgba(0, 0, 0, 0.05);
}

.sticky-action::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    background: linear-gradient(to left, rgba(0, 0, 0, 0.08), transparent);
}

.site-footer {
    margin-top: 60px;
    font-size: 0.9rem;
    color: #64748b;
}

.summary-card-blue,
.summary-card-green {
    color: #ffffff;
    overflow: hidden;
    position: relative;
}

.summary-card-blue {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 60%, #3b82f6 100%);
}

.summary-card-green {
    background: linear-gradient(135deg, #15803d 0%, #16a34a 60%, #22c55e 100%);
}

.summary-card-blue .summary-label,
.summary-card-green .summary-label {
    color: #ffffff !important;
    letter-spacing: 0.2px;
}

.summary-card-blue .summary-value,
.summary-card-green .summary-value {
    color: #ffffff !important;
}

.summary-card-blue .summary-icon,
.summary-card-green .summary-icon {
    color: #ffffff !important;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.page-header p,
.page-header .btn,
.card-soft .text-muted,
.card-soft .form-label,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: #334155 !important;
}

.page-header .text-white-50,
.page-header .text-white-75,
.card-soft .text-white-50,
.card-soft .text-white-75 {
    color: rgba(255, 255, 255, 0.98) !important;
}

.brand-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 12px;
    padding: 4px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.22));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.12);
}

.navbar-brand .brand-title {
    font-size: 0.98rem;
    letter-spacing: 0.2px;
}

.report-toolbar {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 1.35rem;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
}

.report-toolbar .btn-primary,
.report-toolbar .btn-outline-secondary {
    border-radius: 0.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.report-toolbar .btn-primary:hover,
.report-toolbar .btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.12);
}

.report-toolbar .form-control,
.report-toolbar .btn {
    border-radius: 0.8rem;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
    border: 1px solid #dbeafe;
    border-radius: 0.8rem;
    padding: 0.6rem 0.85rem;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    background-color: #fff;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
    border-radius: 0.6rem !important;
    padding: 0.45rem 0.7rem !important;
    margin: 0 0.15rem;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.16);
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
    color: #334155 !important;
}

.dataTables_wrapper .dataTables_info {
    color: #64748b;
    font-size: 0.92rem;
}

.transaction-pagination {
    display: flex;
    justify-content: center;
}

.transaction-pagination .pagination {
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
}

.transaction-pagination .page-item {
    margin: 0;
}

.transaction-pagination .page-link {
    align-items: center;
    border-radius: 0.45rem;
    display: inline-flex;
    height: 2.5rem;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.45rem;
}

.transaction-pagination .page-item.active .page-link {
    box-shadow: 0 6px 14px rgba(37, 99, 235, 0.2);
}

.transaction-pagination .page-item--ellipsis .page-link {
    background: transparent;
    border-color: transparent;
    color: #64748b;
    cursor: default;
}

@media (max-width: 767.98px) {
    .navbar-brand .brand-title {
        font-size: 0.86rem;
    }

    .brand-logo {
        width: 36px;
        height: 36px;
    }
}

.cashier-kpi {
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 0.5rem;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.cashier-kpi .card-body {
    min-height: 146px;
    padding: 1rem;
}

.cashier-kpi-icon {
    align-items: center;
    border-radius: 0.45rem;
    display: inline-flex;
    font-size: 1.05rem;
    height: 2.25rem;
    justify-content: center;
    margin-bottom: 0.8rem;
    width: 2.25rem;
}

.cashier-kpi-label,
.cashier-kpi-note {
    color: #64748b;
    font-size: 0.82rem;
}

.cashier-kpi-value {
    color: #1e293b;
    font-size: 1.65rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0.2rem 0 0.35rem;
}

.cashier-kpi-value--currency {
    font-size: 1.25rem;
    overflow-wrap: anywhere;
}

.hourly-chart {
    gap: 0.4rem;
    min-height: 190px;
}

.hourly-chart .chart-bar-track {
    border-radius: 0.35rem;
    height: 140px;
    max-width: none;
}

.hourly-chart .chart-bar-fill {
    border-radius: 0.3rem;
}

.hourly-chart .chart-bar-label {
    font-size: 0.7rem;
}

.recent-transactions {
    display: grid;
    gap: 0.35rem;
}

.recent-transaction {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    min-height: 3.5rem;
    padding: 0.45rem 0;
}

.recent-transaction:last-child {
    border-bottom: 0;
}

.recent-transaction .badge {
    font-size: 0.68rem;
    font-weight: 600;
}

@media (max-width: 575.98px) {
    .cashier-kpi .card-body {
        min-height: 0;
    }

    .cashier-kpi-value--currency {
        font-size: 1.1rem;
    }

    .hourly-chart {
        gap: 0.22rem;
        min-height: 165px;
    }

    .hourly-chart .chart-bar-track {
        height: 115px;
    }

    .hourly-chart .chart-bar-value,
    .hourly-chart .chart-bar-label {
        font-size: 0.66rem;
    }
}
