/* Nhật Thành Rice — brand design system.
   Rice-paddy green + warm rice-gold, light-mode only (internal business tool). */

:root {
    --nt-primary: #1B5E3A;
    --nt-primary-dark: #123D27;
    --nt-accent: #D4A017;
    --nt-accent-dark: #A87C0A;
    --nt-bg: #F7F5EF;
    --nt-surface: #FFFFFF;
    --nt-text: #2B2B28;
    --nt-text-muted: #6B6558;
}

html, body {
    height: 100%;
}
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--nt-bg);
    color: var(--nt-text);
    font-family: 'Be Vietnam Pro', 'Segoe UI', sans-serif;
}
/* Pushes the footer (last flex child of body) to the bottom of the viewport when page
   content is short, while still flowing after long content — no per-page markup needed. */
.site-footer {
    margin-top: auto;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .card-header {
    font-family: 'Playfair Display', Georgia, serif;
}

a, .btn, .card, .nav-link {
    transition: all .15s ease-in-out;
}

/* Navbar */
.navbar-nt {
    background: linear-gradient(135deg, var(--nt-primary), var(--nt-primary-dark)) !important;
}
.navbar-nt .navbar-brand {
    font-weight: 700;
    letter-spacing: .5px;
    color: #fff !important;
}

/* Buttons */
.btn-primary {
    background-color: var(--nt-primary);
    border-color: var(--nt-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--nt-primary-dark);
    border-color: var(--nt-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(27, 94, 58, .25);
}
.btn-warning {
    background-color: var(--nt-accent);
    border-color: var(--nt-accent);
    color: #2B2B28;
}
.btn-warning:hover, .btn-warning:focus {
    background-color: var(--nt-accent-dark);
    border-color: var(--nt-accent-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 160, 23, .3);
}

/* Cards */
.card {
    border: none;
    border-radius: .6rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}
.card-hover:hover {
    box-shadow: 0 6px 18px rgba(27, 94, 58, .15);
    transform: translateY(-2px);
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--nt-primary);
    box-shadow: 0 0 0 .2rem rgba(27, 94, 58, .18);
}

/* Status colors (validated palette): good/warning/critical + muted for waiting/excluded. */
.badge-status-PENDING, .badge-status-NEW { background-color: #898781; }
.badge-status-ENRICHING, .badge-status-RUNNING { background-color: #fab219; color: #3a2c00; }
.badge-status-DONE, .badge-status-COMPLETED, .badge-status-REPLIED { background-color: #0ca30c; }
.badge-status-SENT { background-color: #2a78d6; }
.badge-status-FAILED, .badge-status-STOPPED, .badge-status-BOUNCED { background-color: #d03b3b; }
.badge-status-SKIPPED_NO_EMAIL, .badge-status-SKIPPED_SUPPRESSED,
.badge-status-SKIPPED_NOT_VERIFIED, .badge-status-UNSUBSCRIBED { background-color: #c3c2b7; color: #3a3a38; }

.table td, .table th { vertical-align: middle; }

.flash-alert { border: none; border-left: 4px solid; border-radius: .4rem; }
.flash-alert.alert-danger { border-left-color: #dc3545; }
.flash-alert.alert-success { border-left-color: #198754; }
.flash-alert.alert-warning { border-left-color: var(--nt-accent); }
.flash-alert.alert-info { border-left-color: #0dcaf0; }

/* Footer */
.site-footer {
    background: var(--nt-primary-dark);
    color: rgba(255, 255, 255, .85);
    padding: 2rem 0 1.25rem;
}
.site-footer a {
    color: var(--nt-accent);
    text-decoration: none;
}
.site-footer a:hover {
    color: #fff;
    text-decoration: underline;
}
.site-footer .footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: #fff;
}
.site-footer hr {
    border-color: rgba(255, 255, 255, .15);
}
.site-footer small {
    color: rgba(255, 255, 255, .6);
}

/* Auth pages (login/register/forgot-password) */
.auth-card {
    border-radius: .8rem;
    box-shadow: 0 10px 30px rgba(27, 94, 58, .15);
}
.auth-shell {
    flex: 1;
    width: 100%;
    background: linear-gradient(160deg, var(--nt-bg) 0%, #ece7d8 100%);
}
