@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: url('../views/bg.png') center/cover no-repeat fixed;
    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;
    padding-left: 1.5rem;
    padding-right: 2.5rem;
}

.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;
}

.btn-success {
    background: #E0B020;
    border: none;
    color: #0b0f14;
}

.btn-success:hover,
.btn-success:focus {
    background: #c9991b;
    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: 2.5rem;
    align-items: center;
    max-width: 1120px;
    margin: 0 auto;
    padding-inline: 1.5rem;
}

.auth-hero {
    flex: 1 1 320px;
    border-radius: 1.5rem;
    padding: 2.75rem;
    background: linear-gradient(150deg, rgba(223, 235, 255, 0.95), rgba(245, 249, 255, 0.98));
    color: #1d2433;
    border: 1px solid rgba(45, 123, 214, 0.18);
    box-shadow: 0 24px 60px rgba(32, 88, 170, 0.18);
}

.auth-hero-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #F5C842;
    font-weight: 700;
    display: inline-flex;
    margin-bottom: 0.75rem;
}

.auth-hero h2 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1d2433;
}

.auth-hero p {
    color: rgba(29, 36, 51, 0.75);
    line-height: 1.6;
}

.auth-hero-list {
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.75rem;
}

.auth-hero-list li {
    position: relative;
    padding-left: 1.6rem;
    color: rgba(29, 36, 51, 0.8);
}

.auth-hero-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.4rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    background: #F5C842;
    box-shadow: 0 0 0 6px rgba(245, 200, 66, 0.18);
}

.auth-hero-stats {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

.auth-hero-stat {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(45, 123, 214, 0.12);
}

.auth-hero-stat strong {
    display: block;
    font-size: 1.1rem;
    color: #1d2433;
}

.auth-hero-stat span {
    font-size: 0.85rem;
    color: rgba(29, 36, 51, 0.7);
}

.auth-card {
    flex: 1 1 360px;
}

.auth-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.75rem;
}

.auth-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #F5C842;
    color: #0b0f14;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(245, 200, 66, 0.7);
}

.auth-card-icon svg {
    width: 24px;
    height: 24px;
}

.auth-card .form-control {
    background: #f3f7ff;
    border-color: rgba(45, 123, 214, 0.2);
}

.auth-submit {
    background: linear-gradient(135deg, #2d7bd6, #1f5fbf);
    border: none;
    color: #fff;
    box-shadow: 0 12px 24px rgba(31, 95, 191, 0.25);
}

.auth-submit:hover,
.auth-submit:focus {
    background: linear-gradient(135deg, #2a70c3, #1b53a7);
    color: #fff;
}

.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: #F5C842 !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%;
    }
}

