@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&family=Inter:wght@300;400;500;600&family=Roboto+Mono&display=swap');

:root {
    --midnight-bg: #0F172A;
    --titanium-panel: rgba(30, 41, 59, 0.7);
    --neon-cyan: #22D3EE;
    --vibrant-purple: #A855F7;
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    
    /* Enterprise Palette */
    --ent-primary: #6366F1;
    --ent-primary-glow: rgba(99, 102, 241, 0.2);
    --ent-surface: rgba(15, 23, 42, 0.8);
    --ent-border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--mud-palette-background);
    color: var(--mud-palette-text-primary);
    font-family: 'Inter', sans-serif;
    margin: 0;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(99, 102, 241, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.05) 0px, transparent 50%);
}

h1, h2, h3, .mud-typography-h1, .mud-typography-h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.glass-panel {
    background: linear-gradient(135deg, rgba(var(--mud-palette-surface-rgb), 0.9) 0%, rgba(var(--mud-palette-surface-rgb), 0.7) 100%);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--ent-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.modern-card {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.modern-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: var(--mud-palette-primary);
}

.purple-glow {
    box-shadow: 0 0 30px rgba(var(--mud-palette-secondary-rgb), 0.15);
}

.primary-glow {
    box-shadow: 0 0 30px var(--ent-primary-glow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.2);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--mud-palette-primary);
}

/* Enterprise List Styles */
.ent-list-item {
    padding: 12px 16px;
    border-radius: 12px;
    transition: background 0.2s ease;
    cursor: pointer;
}
.ent-list-item:hover {
    background: rgba(var(--mud-palette-primary-rgb), 0.05);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.doc-preview-container {
    height: calc(100vh - 120px);
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

/* Mobile Table Spacing Fix */
.mud-table-sm .mud-table-row,
.mud-table-xs .mud-table-row,
.mud-table-mobile .mud-table-row {
    display: block !important;
    margin-bottom: 24px !important;
    border: 1px solid var(--mud-palette-divider) !important;
    border-radius: 16px !important;
    background: var(--mud-palette-surface) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
    overflow: hidden !important;
}

.mud-table-sm .mud-table-cell,
.mud-table-xs .mud-table-cell,
.mud-table-mobile .mud-table-cell {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--mud-palette-divider) !important;
}

.mud-table-sm .mud-table-cell:last-child,
.mud-table-xs .mud-table-cell:last-child,
.mud-table-mobile .mud-table-cell:last-child {
    border-bottom: none !important;
}

.mud-table-sm .mud-table-cell-label,
.mud-table-xs .mud-table-cell-label,
.mud-table-mobile .mud-table-cell-label {
    font-weight: 700 !important;
    color: var(--mud-palette-primary) !important;
    margin-right: 16px !important;
    text-align: left !important;
}
