/* Luxury Dark Gold Aesthetic (Aura ODR) */
:root {
    --bg-darker: #08090a;
    --bg-dark: #0f1115;
    --bg-card: rgba(22, 26, 33, 0.7);
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-light: #f3e5ab;
    --gold-dark: #aa771c;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
    --gold-gradient-hover: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
    --text-primary: #f0f2f5;
    --text-muted: #8e9cae;
    --border-color: rgba(212, 175, 55, 0.15);
    --border-hover: rgba(212, 175, 55, 0.4);
    --font-sans: 'Outfit', 'Montserrat', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 10px rgba(212, 175, 55, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Obsidian Gold (Default Dark) */
body.theme_obsidian_gold {
    /* Uses root variables */
}

/* 2. Royal Purple */
body.theme_royal_purple {
    --bg-darker: #0b0716;
    --bg-dark: #140d25;
    --bg-card: rgba(30, 20, 50, 0.7);
    --gold: #e6c229;
    --gold-glow: rgba(230, 194, 41, 0.4);
    --gold-light: #fbe897;
    --gold-dark: #b89310;
    --gold-gradient: linear-gradient(135deg, #e6c229 0%, #b89310 100%);
    --gold-gradient-hover: linear-gradient(135deg, #fbe897 0%, #e6c229 100%);
    --text-primary: #f5f3f7;
    --text-muted: #aca3be;
    --border-color: rgba(230, 194, 41, 0.2);
    --border-hover: rgba(230, 194, 41, 0.5);
}

/* 3. Emerald Gold */
body.theme_emerald_gold {
    --bg-darker: #050d0a;
    --bg-dark: #0b1a15;
    --bg-card: rgba(15, 35, 29, 0.7);
    --gold: #d4af37;
    --gold-glow: rgba(212, 175, 55, 0.4);
    --gold-light: #f3e5ab;
    --gold-dark: #aa771c;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
    --gold-gradient-hover: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
    --text-primary: #f0f5f3;
    --text-muted: #95b3a8;
    --border-color: rgba(212, 175, 55, 0.2);
    --border-hover: rgba(212, 175, 55, 0.5);
}

/* 4. Sapphire Blue */
body.theme_sapphire_blue {
    --bg-darker: #040914;
    --bg-dark: #091326;
    --bg-card: rgba(15, 28, 50, 0.7);
    --gold: #38b6ff;
    --gold-glow: rgba(56, 182, 255, 0.4);
    --gold-light: #8ad2ff;
    --gold-dark: #0077b6;
    --gold-gradient: linear-gradient(135deg, #38b6ff 0%, #0077b6 100%);
    --gold-gradient-hover: linear-gradient(135deg, #8ad2ff 0%, #38b6ff 100%);
    --text-primary: #eff6ff;
    --text-muted: #9bbcd5;
    --border-color: rgba(56, 182, 255, 0.2);
    --border-hover: rgba(56, 182, 255, 0.5);
}

/* 5. Rose Gold */
body.theme_rose_gold {
    --bg-darker: #0f0d0e;
    --bg-dark: #1c181a;
    --bg-card: rgba(38, 32, 35, 0.7);
    --gold: #b76e79;
    --gold-glow: rgba(183, 110, 121, 0.4);
    --gold-light: #e4b2b9;
    --gold-dark: #8c4c54;
    --gold-gradient: linear-gradient(135deg, #b76e79 0%, #8c4c54 100%);
    --gold-gradient-hover: linear-gradient(135deg, #e4b2b9 0%, #b76e79 100%);
    --text-primary: #faf6f7;
    --text-muted: #c8b7b9;
    --border-color: rgba(183, 110, 121, 0.25);
    --border-hover: rgba(183, 110, 121, 0.5);
}

/* 6. Carbon Minimal */
body.theme_carbon_minimal {
    --bg-darker: #121212;
    --bg-dark: #1e1e1e;
    --bg-card: rgba(38, 38, 38, 0.7);
    --gold: #ffffff;
    --gold-glow: rgba(255, 255, 255, 0.2);
    --gold-light: #f5f5f7;
    --gold-dark: #888888;
    --gold-gradient: linear-gradient(135deg, #ffffff 0%, #888888 100%);
    --gold-gradient-hover: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);
    --text-primary: #f5f5f7;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.15);
    --border-hover: rgba(255, 255, 255, 0.4);
}

/* 7. Snow Alabaster (Light Theme) */
body.theme_snow_alabaster {
    --bg-darker: #f5f5f7;
    --bg-dark: #ffffff;
    --bg-card: rgba(240, 240, 243, 0.85);
    --gold: #aa771c;
    --gold-glow: rgba(170, 119, 28, 0.2);
    --gold-light: #d4af37;
    --gold-dark: #775313;
    --gold-gradient: linear-gradient(135deg, #aa771c 0%, #775313 100%);
    --gold-gradient-hover: linear-gradient(135deg, #d4af37 0%, #aa771c 100%);
    --text-primary: #1c1c1e;
    --text-muted: #5e5e62;
    --border-color: rgba(170, 119, 28, 0.18);
    --border-hover: rgba(170, 119, 28, 0.5);
    --shadow-glow: 0 8px 32px 0 rgba(0, 0, 0, 0.08), 0 0 10px rgba(170, 119, 28, 0.05);
}

/* 8. Soft Cream (Light Theme) */
body.theme_soft_cream {
    --bg-darker: #fbf8f3;
    --bg-dark: #faf5eb;
    --bg-card: rgba(243, 237, 226, 0.9);
    --gold: #5c4033;
    --gold-glow: rgba(92, 64, 51, 0.2);
    --gold-light: #8b5a2b;
    --gold-dark: #3a281f;
    --gold-gradient: linear-gradient(135deg, #5c4033 0%, #3a281f 100%);
    --gold-gradient-hover: linear-gradient(135deg, #8b5a2b 0%, #5c4033 100%);
    --text-primary: #2b1e17;
    --text-muted: #6e5e54;
    --border-color: rgba(92, 64, 51, 0.2);
    --border-hover: rgba(92, 64, 51, 0.5);
    --shadow-glow: 0 8px 32px 0 rgba(92, 64, 51, 0.06), 0 0 10px rgba(92, 64, 51, 0.04);
}

/* 9. Crimson Wine */
body.theme_crimson_wine {
    --bg-darker: #140507;
    --bg-dark: #220b0e;
    --bg-card: rgba(45, 15, 20, 0.7);
    --gold: #cd7f32;
    --gold-glow: rgba(205, 127, 50, 0.4);
    --gold-light: #e5a975;
    --gold-dark: #99551c;
    --gold-gradient: linear-gradient(135deg, #cd7f32 0%, #99551c 100%);
    --gold-gradient-hover: linear-gradient(135deg, #e5a975 0%, #cd7f32 100%);
    --text-primary: #fbf5f6;
    --text-muted: #cca5aa;
    --border-color: rgba(205, 127, 50, 0.25);
    --border-hover: rgba(205, 127, 50, 0.5);
}

/* 10. Neon Cyber */
body.theme_neon_cyber {
    --bg-darker: #000000;
    --bg-dark: #050505;
    --bg-card: rgba(10, 10, 10, 0.85);
    --gold: #00f0ff;
    --gold-glow: rgba(0, 240, 255, 0.4);
    --gold-light: #ff007f;
    --gold-dark: #0088cc;
    --gold-gradient: linear-gradient(135deg, #00f0ff 0%, #ff007f 100%);
    --gold-gradient-hover: linear-gradient(135deg, #ff007f 0%, #00f0ff 100%);
    --text-primary: #ffffff;
    --text-muted: #8899aa;
    --border-color: rgba(0, 240, 255, 0.25);
    --border-hover: rgba(255, 0, 127, 0.5);
    --shadow-glow: 0 8px 32px 0 rgba(0, 240, 255, 0.1), 0 0 15px rgba(255, 0, 127, 0.15);
}

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

body {
    background-color: var(--bg-darker);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-darker);
}
::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

a {
    color: var(--gold);
    text-decoration: none;
    transition: var(--transition);
}
a:hover {
    color: var(--gold-light);
    text-shadow: 0 0 8px var(--gold-glow);
}

/* Glassmorphism containers */
.glass-container {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glow);
    padding: 2rem;
    transition: var(--transition);
}
.glass-container:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37), 0 0 15px rgba(212, 175, 55, 0.2);
}

/* Main Layout */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(8, 9, 10, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar .logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.nav-links a:hover, .nav-links a.active {
    color: var(--gold);
}

.btn-luxury {
    background: var(--gold-gradient);
    color: #08090a !important;
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.btn-luxury:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
    color: #08090a !important;
}
.btn-secondary {
    background: transparent;
    color: var(--gold) !important;
    border: 1px solid var(--gold);
    font-weight: 600;
    padding: 0.7rem 1.6rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.btn-secondary:hover {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-light) !important;
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 1.5rem;
    text-align: center;
    background: radial-gradient(circle at center, rgba(31, 40, 51, 0.4) 0%, rgba(8, 9, 10, 1) 70%);
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 300px;
    background: rgba(212, 175, 55, 0.05);
    filter: blur(120px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    letter-spacing: 2px;
    font-weight: 800;
    color: #fff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}
.hero h1 span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Page Layout wrapper */
.main-wrapper {
    flex: 1;
    padding: 3rem 5%;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

/* Grid & Cards */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.5rem;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gold-gradient);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    background: rgba(8, 9, 10, 0.8);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 10px var(--gold-glow);
}
select.form-control option {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Table styling */
.luxury-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
}
.luxury-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.luxury-table th {
    background: rgba(8, 9, 10, 0.8);
    color: var(--gold);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.luxury-table td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    color: var(--text-primary);
    font-size: 0.95rem;
}
.luxury-table tr:hover {
    background: rgba(212, 175, 55, 0.03);
}

/* Badges */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
}
.badge-pending {
    background: rgba(212, 175, 55, 0.15);
    color: #f3e5ab;
    border: 1px solid var(--gold);
}
.badge-active {
    background: rgba(40, 167, 69, 0.15);
    color: #2deb5c;
    border: 1px solid rgba(40, 167, 69, 0.4);
}
.badge-disposed {
    background: rgba(108, 117, 125, 0.15);
    color: #b5c3cf;
    border: 1px solid rgba(108, 117, 125, 0.4);
}

/* Cases Page & Virtual Courtroom */
.courtroom-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}
.courtroom-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}
@media (max-width: 900px) {
    .courtroom-grid {
        grid-template-columns: 1fr;
    }
}
.court-section {
    margin-bottom: 2rem;
}
.record-card {
    background: rgba(8, 9, 10, 0.4);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-sm);
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}
.record-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    background: rgba(8, 9, 10, 0.6);
}

/* Footer */
footer {
    background: var(--bg-darker);
    padding: 3rem 5% 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
}
.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}
.footer-logo span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.footer-col h4 {
    color: #fff;
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
}
.footer-col ul {
    list-style: none;
}
.footer-col ul li {
    margin-bottom: 0.6rem;
}
.footer-col ul li a {
    color: var(--text-muted);
}
.footer-col ul li a:hover {
    color: var(--gold);
}
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.05);
    padding-top: 1.5rem;
    font-size: 0.8rem;
}

/* Success and Alert box */
.alert-success {
    background: rgba(40, 167, 69, 0.15);
    color: #2deb5c;
    border: 1px solid rgba(40, 167, 69, 0.3);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}
.alert-danger {
    background: rgba(220, 53, 69, 0.15);
    color: #ff5252;
    border: 1px solid rgba(220, 53, 69, 0.3);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.5rem;
}
