/* ==========================================================================
   Modern Typography & Base Stylesheet
   ========================================================================== */

/* 1. FONT IMPORTS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* 2. ROOT VARIABLES
   ========================================================================== */
:root {
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Montserrat', sans-serif;
    
    --text-color: #ffffff;
    --text-muted: #a0a0a0;
    --text-accent: #f49e31;

    --bg-primary: #121212; /* A very dark grey, softer than pure black */
    --bg-secondary: #19191b;
    --border-color: #2a2a2e;
}

/* 3. BASE & BODY STYLES
   ========================================================================== */
body {
    background-color: var(--bg-primary);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px; /* Base font size */
    font-weight: 400;
    line-height: 1.6;
}

p {
    font-family: var(--font-body);
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 400;
}

a {
    color: var(--text-accent);
    text-decoration: none;
    transition: color 0.2s ease-in-out;
}

a:hover {
    color: var(--text-color);
}

/* 4. HEADINGS & SUB-HEADERS
   ========================================================================== */
h1, h2, h3, h4, h5, h6, .card-title, .special-subtitle {
    font-family: var(--font-heading);
    color: var(--text-color);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-top: 0;
    margin-bottom: 1rem;
}

h1 { font-size: 3rem; font-weight: 800; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.75rem; }
h5, .card-title { font-size: 1.5rem; font-weight: 600; }
h6 { font-size: 1.25rem; font-weight: 600; }

.subtitle {
    font-family: var(--font-body);
    font-size: 1.75rem;
    line-height: 1.75rem;
    color: var(--text-color);
    font-weight: 400;
}

/* 5. TEXT UTILITY CLASSES
   ========================================================================== */

/* Font Size */
.text-xs   { font-size: 0.75rem; line-height: 1rem; }    /* 12px */
.text-sm   { font-size: 0.875rem; line-height: 1.1rem; } /* 14px */
.text-base { font-size: 1rem; line-height: 1.3rem; }      /* 16px */
.text-lg   { font-size: 1.125rem; line-height: 1.55rem; } /* 18px */
.text-xl   { font-size: 1.25rem; line-height: 1.65rem; } /* 20px */
.text-2xl  { font-size: 1.5rem; line-height: 1.85rem; }      /* 24px */
.text-3xl  { font-size: 1.875rem; line-height: 2.15rem; } /* 30px */
.text-4xl  { font-size: 2.25rem; line-height: 2.4rem; }   /* 36px */
.text-5xl  { font-size: 3rem; line-height: 3rem; }           /* 48px */

/* Font Weight */
.font-normal   { font-weight: 400; }
.font-medium   { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold     { font-weight: 700; }
.font-extrabold{ font-weight: 800; }
.font-black    { font-weight: 900; }

/* Letter Spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal{ letter-spacing: 0em; }
.tracking-wide  { letter-spacing: 0.025em; }

/* Text Color */
.text-white { color: var(--text-color)!important; }
.text-muted { color: var(--text-muted)!important; }
.text-accent{ color: var(--text-accent)!important; }

/* 6. COMPONENT-SPECIFIC STYLES
   ========================================================================== */

/* Table Padding Fix */
.table td, .table th {
    padding: 0.5rem 1rem; /* Reduced vertical padding, kept horizontal */
}


body {
    background: linear-gradient(142deg, #161616, #000000)!important;
    color: #d8d8d8;
}

img {
    max-width: 100%;
    height: auto;
}

.card {
    background: #19191b!important;
}

.border {
    border: 2px solid #ffffff12 !important;
}

.page-container {
    background: linear-gradient(142deg, #161616, #000000)!important;
}

.page-container:before {
    background-image:none!important;
}

.page-sidebar {
    background: #0d0d0d!important;
    border-right: 2px solid #181818;
    box-shadow: 0 0 .5rem rgba(0, 0, 0, .1);
}

.page-sidebar:before {
    background: #0d0d0d!important;
    border-right: 2px solid #181818!important;
}


.page-header {
    background:none;
}

@media(max-width: 1390px) {
    .page-header {
        background: #0d0d0d!important;
        border-bottom: 2px solid #181818!important;
    }
}

.table {
    border-color: #ffffff12 !important;
}

.help-tooltip {
    border: 1px solid #ffffff12 !important;
    background:none!important;
}