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

:root {
    --brand-primary: #66d27b;
    --brand-secondary: #9ae84f;
    --brand-accent: #2aa7ff;
    --brand-dark: #0b0f14;
    --brand-surface: #ffffff;
    --brand-surface-2: #f6fbf7;
    --brand-text: #1f2a2f;
    --brand-text-muted: #5f6b73;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #000;
    background: radial-gradient(900px 520px at 10% -10%, rgba(154, 232, 79, 0.35), transparent 60%),
                radial-gradient(800px 420px at 90% -20%, rgba(102, 210, 123, 0.35), transparent 55%),
                linear-gradient(180deg, #f3fbf4 0%, #eaf7ee 45%, #e2f3e8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding-bottom: 4rem;
}

.navbar-brand {
    font-family: 'Montserrat', 'Manrope', sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #000;
    padding: 4px 10px;
    border-radius: 8px;
}

.navbar {
    background: #0b0f14;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(12px);
}

h1, h2, h3, h4, h5, h6,
p, span, li, dt, dd,
label, .card-title, .card-body {
    color: #000;
}

.card,
.table,
.table th,
.table td,
.list-group-item,
.form-control,
.form-select,
.dropdown-menu,
.dropdown-item {
    color: #000;
}

.dropdown-menu {
    background: var(--brand-surface);
    border: 1px solid rgba(102, 210, 123, 0.18);
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: rgba(102, 210, 123, 0.12);
}

.text-muted {
    color: var(--brand-text-muted) !important;
}

.navbar .container-fluid {
    background: #0b0f14;
}

.card {
    border: 1px solid rgba(102, 210, 123, 0.18);
    border-radius: 1.25rem;
    background: var(--brand-surface);
    box-shadow: 0 20px 45px rgba(31, 42, 47, 0.12);
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    border: none;
    color: #0b0f14;
    box-shadow: 0 12px 24px rgba(102, 210, 123, 0.25);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #55c26b, #85e046);
    color: #0b0f14;
}

.form-control {
    border-radius: 0.8rem;
    border: 1px solid rgba(102, 210, 123, 0.25);
    background: var(--brand-surface-2);
    color: #000;
    padding: 0.9rem 1rem;
    font-size: 0.95rem;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.55);
}

.form-control[disabled],
.form-control:disabled,
.form-control[readonly],
.form-control:read-only {
    color: #000;
    background: #eef7f1;
    opacity: 1;
}

.form-control:focus {
    color: #000;
}

.form-select {
    color: #000;
}

input[type="file"] {
    color: #000;
}

.form-select {
    border-radius: 0.8rem;
    border: 1px solid rgba(102, 210, 123, 0.25);
    background: var(--brand-surface-2);
    color: var(--brand-text);
}

.form-select:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 0.2rem rgba(42, 167, 255, 0.2);
}

.form-check-label {
    color: var(--brand-text);
}

.form-label {
    color: #fff;
}

.form-text {
    color: rgba(255, 255, 255, 0.7);
}

.form-control,
.form-select,
input[type="file"] {
    background: #f5fbf7;
    border-color: #8fd39a;
}

.form-control::placeholder {
    color: rgba(0, 0, 0, 0.65);
}

.form-control:focus,
.form-select:focus {
    border-color: #66d27b;
    box-shadow: 0 0 0 0.2rem rgba(102, 210, 123, 0.2);
}

.form-check-label,
.form-label,
.form-text {
    color: #000;
}

.form-control:focus {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 0.2rem rgba(42, 167, 255, 0.2);
}

.auth-page {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
}

.auth-hero {
    flex: 1 1 320px;
    border-radius: 1.5rem;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(102, 210, 123, 0.95), rgba(154, 232, 79, 0.95));
    color: #0b0f14;
    box-shadow: 0 24px 60px rgba(102, 210, 123, 0.3);
}

.auth-hero h2 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.auth-hero p {
    color: rgba(11, 15, 20, 0.8);
    line-height: 1.6;
}

.auth-card {
    flex: 1 1 360px;
}

.progress {
    background: rgba(102, 210, 123, 0.15);
    border-radius: 999px;
}

.progress-bar {
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-inline {
    border-radius: 1rem;
    background: rgba(102, 210, 123, 0.15);
}

.history-table th,
.history-table td {
    vertical-align: middle;
}

.segment-card {
    background: var(--brand-surface-2);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    box-shadow: 0 3px 18px rgba(31, 42, 47, 0.12);
}

.badge.bg-info {
    background: #7fe38f !important;
    color: #0b0f14;
}

.badge.bg-secondary {
    background: #e7f7ea !important;
    color: #1f2a2f;
}

.text-muted {
    color: var(--brand-text-muted) !important;
}

.table {
    color: var(--brand-text);
}

.table > :not(caption) > * > * {
    border-color: rgba(148, 163, 184, 0.15);
}

.table thead th {
    color: var(--brand-text);
}

h1, h2, h3, h4, h5, h6,
p, span, li, dt, dd,
label, .card-title, .card-body {
    color: var(--brand-text);
}

.list-group-item {
    background: var(--brand-surface-2);
    color: var(--brand-text);
    border-color: rgba(102, 210, 123, 0.2);
}

.list-group-item.active {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    color: #0b0f14;
    border-color: transparent;
}

.nav-link {
    color: #fff !important;
}

.navbar-text {
    color: #fff !important;
}

.role-badge {
    font-size: 0.85rem;
    font-weight: 600;
}

@media (max-width: 767px) {
    .navbar .navbar-text {
        margin-bottom: 0.75rem;
    }

    .auth-hero,
    .auth-card {
        flex: 1 1 100%;
    }
}

