:root {
    /* Base Colors - Same for both */
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --accent: #10b981;
    --error: #ef4444;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Theme Variables - Dark (Default) */
    --bg-main: #0f172a;
    --bg-canvas: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --sidebar-bg: rgba(15, 23, 42, 0.5);
    --input-bg: #1e293b;
    --input-focus: #2d3748;
    --table-header: rgba(255, 255, 255, 0.05);
    --gradient-1: rgba(99, 102, 241, 0.15);
    --gradient-2: rgba(16, 185, 129, 0.1);
    --scrollbar-track: rgba(15, 23, 42, 0.3);
}

body.light-mode {
    --bg-main: #f1f5f9;
    --bg-canvas: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.08);
    --text-main: #0f172a;
    --text-muted: #64748b;
    --sidebar-bg: rgba(255, 255, 255, 0.6);
    --input-bg: #ffffff;
    --input-focus: #f8fafc;
    --table-header: rgba(0, 0, 0, 0.03);
    --gradient-1: rgba(99, 102, 241, 0.08);
    --gradient-2: rgba(16, 185, 129, 0.05);
    --scrollbar-track: rgba(0, 0, 0, 0.05);
}

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

html,
body {
    height: 100vh;
    overflow: hidden;
}

body {
    background-color: var(--bg-canvas);
    background-image:
        radial-gradient(at 0% 0%, var(--gradient-1) 0, transparent 50%),
        radial-gradient(at 100% 100%, var(--gradient-2) 0, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    transition: background-color 0.3s, color 0.3s;
}

/* Utility Classes */
.flex {
    display: flex;
}

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

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

.justify-between {
    justify-content: space-between;
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

.w-full {
    width: 100%;
}

.m-0 {
    margin: 0;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mt-8 {
    margin-top: 2rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.ml-4 {
    margin-left: 1rem;
}

.min-w-250 {
    min-width: 250px;
}

.min-w-300 {
    min-width: 300px;
}

.max-w-400 {
    max-width: 400px;
}

.flex-2 {
    flex: 2;
}

.flex-1 {
    flex: 1;
}

.h-38 {
    height: 38px;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.text-muted {
    color: var(--text-muted);
}

.text-main {
    color: var(--text-main);
}

.text-error {
    color: var(--error);
}

.text-warning {
    color: #f59e0b;
}

.p-20 {
    padding: 1.25rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
}

.font-bold {
    font-weight: 700;
}

.uppercase {
    text-transform: uppercase;
}

.tracking-wider {
    letter-spacing: 0.05em;
}

.app-container {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Custom Scrollbar Styling for Premium Feel */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 10px;
    border: 2px solid var(--bg-canvas);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.6);
}

aside {
    width: 280px;
    background: var(--sidebar-bg);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1rem;
}

.nav-item {
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid transparent;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.nav-item.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border-color: rgba(99, 102, 241, 0.2);
}

header {
    padding: 1rem 2rem;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: linear-gradient(to right, #818cf8, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

main {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    height: 100%;
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin-bottom: 2rem;
}

.table-container {
    overflow-x: auto;
    border-radius: 0.5rem;
}

table {
    width: 100%;
    min-width: max-content;
    border-collapse: collapse;
    margin-top: 1rem;
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    background: var(--table-header);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
    min-width: 120px;
}

th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

th.sortable:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Drag and Drop Column Styles */
th.draggable-column {
    cursor: move;
    cursor: grab;
}

th.draggable-column:active {
    cursor: grabbing;
}

th.dragging {
    opacity: 0.4;
    background: rgba(99, 102, 241, 0.2);
}

th.drag-over {
    background: rgba(99, 102, 241, 0.3);
    border-left: 3px solid var(--primary);
    transform: scale(1.02);
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    font-size: 0.9375rem;
    min-width: 120px;
    max-width: 400px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.2s;
}

td:hover {
    white-space: normal;
    overflow: visible;
    background: rgba(255, 255, 255, 0.05);
    z-index: 1;
}

tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.btn {
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

/* Micro-animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Login Page Styles */
.login-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.login-card {
    background: var(--card-bg);
    backdrop-filter: blur(24px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.login-header h1 {
    font-size: 2rem;
    margin: 1.5rem 0 0.5rem;
    font-weight: 700;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 2.5rem;
}

.login-action {
    margin-bottom: 2.5rem;
}

.btn-google {
    width: 100%;
    justify-content: center;
    background: white;
    color: #1f2937;
    padding: 0.875rem;
    font-size: 1rem;
    border: 1px solid #e5e7eb;
}

.btn-google:hover {
    background: #f9fafb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.login-footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.animate-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Pagination Styles */
.pagination-bar {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

.select-input {
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    margin-left: 0.75rem;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.select-input option {
    background-color: var(--input-bg);
    color: var(--text-main);
}

.select-input:focus {
    border-color: var(--primary);
    background: var(--input-focus);
}

.pager-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-main);
    font-weight: 500;
}

.btn-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
    border-radius: 0.5rem;
}

.btn-icon:hover:not(:disabled) {
    background: var(--primary);
    color: white;
}

.btn-icon:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#page-info {
    min-width: 80px;
    text-align: center;
}

/* Search Styles */
.search-container {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s;
}

.search-input {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    padding: 0.625rem 1rem 0.625rem 2.8rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    outline: none;
    transition: all 0.2s;
}

.search-input:focus {
    border-color: var(--primary);
    background: var(--input-focus);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

.search-input:focus+.search-icon {
    color: var(--primary);
}

/* Detailed View Styles */
.detail-section {
    margin-bottom: 3rem;
    animation: fadeIn 0.5s ease-out forwards;
}

.detail-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.detail-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.25rem;
    transition: all 0.2s;
}

.detail-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(99, 102, 241, 0.3);
    transform: translateY(-2px);
}

.detail-field {
    margin-bottom: 0.75rem;
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.detail-value {
    font-size: 0.9375rem;
    color: var(--text-main);
}

.no-data-msg {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.875rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 0.5rem;
    text-align: center;
}

/* Horizontal Row Layout for Master View */
.detail-row-list {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

.detail-row-card {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.2s;
}

.detail-row-card:last-child {
    border-bottom: none;
}

.detail-row-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.detail-row-card .detail-field {
    margin-bottom: 0;
    min-width: 140px;
    flex: 1;
}

.detail-row-card .detail-label {
    margin-bottom: 0.125rem;
    opacity: 0.8;
}

.detail-row-card .detail-value {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    transition: all 0.2s;
}

.detail-row-card .detail-value:hover {
    white-space: normal;
    overflow: visible;
    word-break: break-all;
    background: rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 10;
}

/* Override for long-text fields */
.detail-field.full-width {
    flex: 1 1 100%;
}

.detail-value.no-truncate {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    word-break: break-word;
}

#user-profile a:hover {
    color: var(--error) !important;
    text-decoration: underline !important;
}

/* Filter System Styles */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    align-items: flex-end;
}

.light-mode .filter-bar {
    background: rgba(255, 255, 255, 0.4);
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.filter-group label {
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding-left: 0.25rem;
}

.global-filter-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.25rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    margin: 0 0.5rem;
}

.light-mode .global-filter-container {
    background: rgba(0, 0, 0, 0.02);
}

.btn-refresh {
    background: var(--glass-border);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
}

.btn-refresh:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-export {
    background: var(--primary);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-export:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-export svg {
    margin-right: 0.25rem;
}

/* Header & Profile Components */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.label-caps {
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.select-input-sm {
    margin: 0;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    height: 30px;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-left: 1px solid var(--glass-border);
    padding-left: 1.5rem;
}

#user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
}

.user-name {
    font-size: 0.85rem;
    font-weight: 600;
}

.logout-link {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
}

.sidebar-section-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.sidebar-divider {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.master-banner {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.banner-label {
    font-size: 0.75rem;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.spinner-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.flex-1 {
    flex: 1;
}

.flex-2 {
    flex: 2;
}

.min-w-250 {
    min-width: 250px;
}

.min-w-300 {
    min-width: 300px;
}

.max-w-400 {
    max-width: 400px;
}

.h-450 {
    height: 450px;
}

.text-center {
    text-align: center;
}

.text-main {
    color: var(--text-main);
}

.p-12 {
    padding: 3rem;
}

.p-20 {
    padding: 5rem;
}

.mb-2 {
    margin-bottom: 0.5rem;
}

.mr-2 {
    margin-right: 0.5rem;
}

.opacity-30 {
    opacity: 0.3;
}

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

.relative {
    position: relative;
}

.status-primary {
    background: rgba(99, 102, 241, 0.15);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.btn-danger-soft {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
    transition: all 0.2s;
}

.btn-danger-soft:hover {
    background: var(--error);
    color: white;
}

.btn-primary-soft {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.2s;
}

.btn-primary-soft:hover {
    background: var(--primary);
    color: white;
}

.filter-indicator-bar {
    display: flex;
    margin-top: 1rem;
    align-items: center;
    gap: 0.75rem;
}

.analytics-canvas-container {
    height: 450px;
    width: 100%;
    background: rgba(15, 23, 42, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 1px solid var(--glass-border);
}

.min-h-120 {
    min-height: 120px;
}

/* Status badge variants */
.status-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--error);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.text-xs-muted {
    font-size: 0.7rem;
    margin-top: 0.5rem;
    opacity: 0.5;
}

.ml-auto {
    margin-left: auto;
}

.min-w-200 {
    min-width: 200px;
}

.filter-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.date-input-filter {
    margin: 0;
    padding: 0.35rem 0.5rem;
    font-size: 0.8rem;
    min-width: 140px;
}

.select-input-filter {
    margin: 0;
    min-width: 140px;
    height: 38px;
}

.select-input-filter-sm {
    margin: 0;
    min-width: 100px;
    height: 38px;
}

.select-input-filter-lg {
    margin: 0;
    min-width: 160px;
    height: 38px;
}

.font-normal {
    font-weight: 400;
}

.record-divider {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.25rem;
}

.req-link {
    color: var(--primary);
    cursor: pointer;
    text-decoration: underline;
}

/* Modal & Column Selection Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.15s ease-out;
}

.modal-content {
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
    margin: 0;
    padding: 2rem;
    position: relative;
    border-radius: 1.5rem !important;
}

.modal-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.modal-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.column-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.column-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.column-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
}

.column-item.checked {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(99, 102, 241, 0.05);
}

.column-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.column-item span {
    font-size: 0.9375rem;
    color: var(--text-main);
}

/* Budget vs Expenses Comparison Styles */
.comparison-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.summary-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s;
}

.summary-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.summary-card-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.summary-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
}

.summary-card-value.positive {
    color: var(--accent);
}

.summary-card-value.negative {
    color: var(--error);
}

.comparison-tables {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.comparison-table-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.comparison-table-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.comparison-table-section table {
    margin-top: 0;
}

.comparison-table-section th {
    font-size: 0.75rem;
    padding: 0.75rem 1rem;
}

.comparison-table-section td {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
}

.comparison-total-row {
    font-weight: 700;
    background: rgba(99, 102, 241, 0.1);
    border-top: 2px solid var(--primary);
}

.comparison-total-row td {
    color: var(--primary);
}


.modal-footer {
    display: flex;
    justify-content: flex-end;
}

/* =====================================================
   Employee Trip Report Styles
   ===================================================== */
.trip-report-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: rgba(15, 23, 42, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
}

.light-mode .trip-report-controls {
    background: rgba(255, 255, 255, 0.4);
}

.trip-report-count {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
}

.trip-report-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trip-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.25s ease;
}

.light-mode .trip-card {
    background: rgba(255, 255, 255, 0.6);
}

.trip-card:hover {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.trip-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(99, 102, 241, 0.06);
    border-bottom: 1px solid var(--glass-border);
    flex-wrap: wrap;
    gap: 0.75rem;
}

.trip-card-id {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.trip-req-num {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

.trip-status-badge {
    display: inline-block;
    padding: 0.2rem 0.85rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.trip-status-badge.status-pending {
    background: rgba(251, 191, 36, 0.15);
    color: #f59e0b;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.trip-status-badge.status-approved {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.trip-status-badge.status-denied {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.light-mode .trip-status-badge.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.light-mode .trip-status-badge.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.light-mode .trip-status-badge.status-denied {
    background: #fee2e2;
    color: #991b1b;
}

.trip-card-body {
    padding: 1.5rem;
}

.trip-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem 2rem;
    margin-bottom: 1.5rem;
}

.trip-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.light-mode .trip-info-item {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

.trip-info-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 600;
}

.trip-info-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.trip-info-reason {
    white-space: normal;
    word-break: break-word;
    line-height: 1.4;
}

.trip-financial-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.trip-financial-section.single-block {
    grid-template-columns: 1fr;
}

@media (max-width: 768px) {
    .trip-financial-section {
        grid-template-columns: 1fr;
    }
}

.trip-financial-block {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1rem;
}

.light-mode .trip-financial-block {
    background: rgba(0, 0, 0, 0.02);
}

.trip-financial-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.trip-mini-table {
    margin-top: 0 !important;
    min-width: auto !important;
}

.trip-mini-table th {
    font-size: 0.7rem;
    padding: 0.5rem 0.75rem;
    min-width: auto;
}

.trip-mini-table td {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    min-width: auto;
    max-width: none;
    white-space: normal;
}