/* Global Design System */
:root {
    --color-primary: #531823; /* Deep Burgundy */
    --color-accent: #E3DFD3; /* Beige */
    --color-text-light: #F5F5F7;
    --color-text-dark: #2D2D2D;
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-md: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
}

/* Reset & Base */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--color-primary);
    color: var(--color-text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

@media (max-width: 600px) {
    .container {
        padding: 15px;
    }
}

.text-accent { color: var(--color-accent); }
.text-center { text-align: center; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    text-align: center;
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 223, 211, 0.4);
}

.btn-accent:active {
    transform: translateY(0);
}

/* Base Layout (Navbar) */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    background: var(--color-primary);
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

@media (min-width: 768px) {
    .main-header {
        padding: 20px 40px;
    }
}

.logo-img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid var(--color-text-light);
    object-fit: cover;
}

.hamburger {
    cursor: pointer;
    width: 30px;
    height: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    z-index: 1100;
    padding: 2px;
}

.hamburger div {
    height: 3px;
    background-color: var(--color-accent);
    border-radius: 2px;
    transition: 0.3s;
    width: 100%;
}

/* Mobile Sidebar */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background-color: #3e121a; /* Darker burgundy */
    padding-top: 80px;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav a {
    display: block;
    padding: 18px 30px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.mobile-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--color-accent);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 1040;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s;
    backdrop-filter: blur(3px);
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Grid Utilities */
.grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

@media (max-width: 480px) {
    .grid-responsive {
        grid-template-columns: 1fr;
    }
}
