@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
    --color-primary:   #EF6926;
    --color-secondary: #F8AF3C;
    --text-primary:    rgba(255, 255, 255, 1.00);
    --text-secondary:  rgba(255, 255, 255, 0.75);
    --text-muted:      rgba(255, 255, 255, 0.50);
    --border-subtle:   rgba(255, 255, 255, 0.08);
    --border-default:  rgba(255, 255, 255, 0.12);
    --ease-out:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }

html {
    height: 100%;
}

body {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.container {
    flex: 1;
    padding-top: 96px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 160ms var(--ease-out);
}

a:hover { color: var(--color-secondary); }

/* ── Focus ── */
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem rgba(239, 105, 38, 0.3),
                0 0 0 0.25rem rgba(239, 105, 38, 0.2);
}

/* ── Buttons ── */
.btn-primary {
    background: linear-gradient(to right, #F8AF3C, #EA5B27);
    border: none;
    border-radius: 7px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: opacity 160ms var(--ease-out);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: linear-gradient(to right, #F8AF3C, #EA5B27);
    opacity: 0.85;
}

.btn-secondary, .btn-outline-secondary {
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-secondary:hover, .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.40);
    color: #fff;
}

/* ── Forms ── */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--border-default);
    border-radius: 10px;
    color: var(--text-primary) !important;
    transition: border-color 160ms var(--ease-out);
    color-scheme: dark;
}

.form-control:focus, .form-select:focus {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(239, 105, 38, 0.20);
    color: var(--text-primary) !important;
}

.form-control::placeholder { color: var(--text-muted); }

.form-label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--text-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Cards ── */
.card {
    background: rgba(18, 18, 18, 0.82);
    backdrop-filter: blur(32px) saturate(1.5);
    -webkit-backdrop-filter: blur(32px) saturate(1.5);
    border: 1px solid var(--border-default) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55),
                inset 0 0 0 1px rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

.card-title { font-weight: 700; color: var(--text-primary); }
.card-text  { color: var(--text-secondary); }

/* ── Tables ── */
.table {
    color: var(--text-primary);
    border-color: var(--border-subtle);
}

.table thead th {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-default);
}

.table tbody tr { border-bottom: 1px solid var(--border-subtle); }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.04); }

/* ── Nav pills ── */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
    background: linear-gradient(135deg, #F8AF3C, #EA5B27);
    color: #fff;
    border: none;
}

/* ── Dividers ── */
.border-top    { border-top:    1px solid var(--border-subtle) !important; }
.border-bottom { border-bottom: 1px solid var(--border-subtle) !important; }

/* ── Step indicators ── */
.step-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    user-select: none;
}

.step-dot.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.step-dot.done {
    background: linear-gradient(135deg, #F8AF3C, #EA5B27);
    color: #fff;
    border-color: transparent;
}

.step-roundedsquare {
    height: 32px;
    width: 80px;
    border-radius: 16px;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-default);
    color: var(--text-muted);
    user-select: none;
}

.step-roundedsquare.active {
    border-color: var(--color-primary);
    color: var(--color-primary);
    font-weight: 600;
}

.step-roundedsquare.done {
    background: linear-gradient(135deg, #F8AF3C, #EA5B27);
    color: #fff;
    border-color: transparent;
}

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ── Dropdown menus ── */
.form-select option {
        background-color: #1a1a1a;
        color: rgba(255, 255, 255, 0.88);
    }
.form-select option:disabled {
        color: rgba(255, 255, 255, 0.30);
}

/* ── Navbar ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(8, 8, 8, 0.88) !important;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 2px solid;
    border-image: linear-gradient(90deg, #F8AF3C, #EA5B27) 1;
    height: 64px;
}

a.navbar-brand {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1) !important;
    white-space: normal;
    word-break: break-all;
}

.navbar-nav .nav-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 1) !important;
    transition: color 160ms cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    padding-bottom: 4px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 2px;
    background: linear-gradient(90deg, #F8AF3C, #EA5B27);
    transform: scaleX(0);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: rgba(255, 255, 255, 1) !important;
    text-shadow: 0 0 20px rgba(239, 105, 38, 0.55);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 1);
}

/* ── Footer ── */
.footer {
    position: relative;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: transparent !important;
    --bs-body-bg: transparent !important;
}

.footer a {
    display: inline;
}