/* ============================================================
   FitCheck theme layer
   Plain CSS token layer that re-themes Bootstrap 5.3 from one
   file by overriding Bootstrap's own CSS custom properties.
   No build tooling — safe to edit by hand.
   ============================================================ */

:root {
    /* Brand palette */
    --fc-indigo:      #5b4bff;
    --fc-indigo-deep: #3d2ce0;
    --fc-violet:      #8b5cf6;
    --fc-coral:       #ff5c7c;
    --fc-ink:         #1a1830;
    --fc-slate:       #5a5872;
    --fc-bg:          #f5f4fb;
    --fc-surface:     #ffffff;

    --fc-gradient: linear-gradient(120deg, var(--fc-indigo) 0%, var(--fc-violet) 100%);
    --fc-gradient-hot: linear-gradient(120deg, var(--fc-indigo) 0%, var(--fc-coral) 120%);

    --fc-radius:    0.85rem;
    --fc-radius-lg: 1.25rem;
    --fc-shadow-sm: 0 1px 2px rgba(26, 24, 48, 0.06), 0 2px 8px rgba(26, 24, 48, 0.05);
    --fc-shadow:    0 6px 24px rgba(91, 75, 255, 0.10), 0 2px 6px rgba(26, 24, 48, 0.06);
    --fc-shadow-lg: 0 18px 48px rgba(91, 75, 255, 0.18);

    /* Bootstrap variable overrides — re-theme the whole app */
    --bs-primary:            #5b4bff;
    --bs-primary-rgb:        91, 75, 255;
    --bs-link-color:         #4a39e6;
    --bs-link-color-rgb:     74, 57, 230;
    --bs-link-hover-color:   #3d2ce0;

    --bs-body-bg:            var(--fc-bg);
    --bs-body-color:         var(--fc-ink);
    --bs-secondary-color:    var(--fc-slate);
    --bs-body-font-family:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --bs-border-radius:      var(--fc-radius);
    --bs-border-radius-lg:   var(--fc-radius-lg);
    --bs-border-radius-sm:   0.55rem;
    --bs-border-color:       #e6e3f5;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(60rem 32rem at 105% -8%, rgba(139, 92, 246, 0.10), transparent 60%),
        radial-gradient(48rem 28rem at -10% 0%, rgba(255, 92, 124, 0.08), transparent 55%),
        var(--fc-bg);
    background-attachment: fixed;
    letter-spacing: -0.01em;
}

main {
    flex: 1;
}

/* Headings ---------------------------------------------------- */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand, .display-1, .display-2, .display-3, .display-4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--fc-ink);
}

/* Headings on dark/coloured surfaces inherit the surface text colour */
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6 {
    color: inherit;
}

.text-gradient {
    background: var(--fc-gradient-hot);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Navbar ------------------------------------------------------ */
.fc-navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(91, 75, 255, 0.10);
    box-shadow: 0 2px 20px rgba(26, 24, 48, 0.04);
}

.fc-navbar .navbar-brand {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    background: var(--fc-gradient-hot);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.fc-navbar .nav-link {
    color: var(--fc-slate);
    font-weight: 500;
    border-radius: 0.6rem;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.fc-navbar .nav-link:hover,
.fc-navbar .nav-link:focus,
.fc-navbar .nav-link.show {
    color: var(--fc-indigo-deep);
    background-color: rgba(91, 75, 255, 0.08);
}

.fc-navbar .navbar-toggler {
    border-color: rgba(91, 75, 255, 0.25);
}

/* Cards ------------------------------------------------------- */
.card {
    border: 1px solid var(--bs-border-color);
    border-radius: var(--fc-radius-lg);
    background: var(--fc-surface);
    box-shadow: var(--fc-shadow-sm);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--fc-shadow);
}

/* Buttons ----------------------------------------------------- */
.btn {
    border-radius: 0.7rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.btn-lg {
    border-radius: 0.85rem;
}

.btn-primary {
    --bs-btn-bg: var(--fc-indigo);
    --bs-btn-border-color: var(--fc-indigo);
    --bs-btn-hover-bg: var(--fc-indigo-deep);
    --bs-btn-hover-border-color: var(--fc-indigo-deep);
    --bs-btn-active-bg: var(--fc-indigo-deep);
    --bs-btn-active-border-color: var(--fc-indigo-deep);
    background-image: var(--fc-gradient);
    border: none;
    box-shadow: 0 6px 16px rgba(91, 75, 255, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-image: var(--fc-gradient);
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(91, 75, 255, 0.34);
}

.btn-outline-primary {
    --bs-btn-color: var(--fc-indigo-deep);
    --bs-btn-border-color: var(--fc-indigo);
    --bs-btn-hover-bg: var(--fc-indigo);
    --bs-btn-hover-border-color: var(--fc-indigo);
    --bs-btn-active-bg: var(--fc-indigo-deep);
}

/* Badges ------------------------------------------------------ */
.badge {
    font-weight: 600;
    border-radius: 50rem;
    padding: 0.36em 0.7em;
    letter-spacing: 0.01em;
}

.text-primary { color: var(--fc-indigo) !important; }
.bg-primary   { background-color: var(--fc-indigo) !important; }

/* Tables ------------------------------------------------------ */
.table {
    --bs-table-bg: transparent;
}

.table th {
    white-space: nowrap;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.04em;
    color: var(--fc-slate);
}

.table > :not(caption) > * > * {
    padding: 0.7rem 0.75rem;
}

/* Forms ------------------------------------------------------- */
.form-control,
.form-select {
    border-radius: 0.65rem;
    border-color: var(--bs-border-color);
}

.form-control:focus,
.form-select:focus,
.btn:focus-visible,
.form-check-input:focus {
    border-color: var(--fc-indigo);
    box-shadow: 0 0 0 0.2rem rgba(91, 75, 255, 0.20);
}

.form-check-input:checked {
    background-color: var(--fc-indigo);
    border-color: var(--fc-indigo);
}

.input-group-text {
    background: rgba(91, 75, 255, 0.06);
    border-color: var(--bs-border-color);
    color: var(--fc-slate);
}

/* Alerts ------------------------------------------------------ */
.alert {
    border-radius: var(--fc-radius);
    border: 1px solid transparent;
}

/* Hero -------------------------------------------------------- */
.fc-hero {
    position: relative;
    border-radius: var(--fc-radius-lg);
    padding: 4rem 1.5rem;
    background:
        radial-gradient(40rem 20rem at 80% -20%, rgba(255, 92, 124, 0.25), transparent 60%),
        var(--fc-gradient);
    color: #fff;
    overflow: hidden;
    box-shadow: var(--fc-shadow-lg);
}

.fc-hero h1,
.fc-hero .display-4 {
    color: #fff;
}

.fc-hero .lead {
    color: rgba(255, 255, 255, 0.9);
}

.fc-hero .btn-light {
    color: var(--fc-indigo-deep);
    font-weight: 600;
    border: none;
}

/* Stat cards -------------------------------------------------- */
.fc-stat-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.9rem;
    font-size: 1.4rem;
    color: #fff;
}

/* Footer ------------------------------------------------------ */
.fc-footer {
    color: var(--fc-slate);
}

.fc-footer a {
    color: var(--fc-indigo-deep);
    text-decoration: none;
}

/* Drop zone (existing behaviour preserved) -------------------- */
.drop-zone {
    border: 2px dashed #cfc9f0;
    border-radius: var(--fc-radius);
    transition: all 0.2s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone-active {
    border-color: var(--fc-indigo);
    background-color: rgba(91, 75, 255, 0.06);
}
