/*
Theme Name: CNMF Union Theme
Theme URI: https://cnmf.org
Author: CNMF
Author URI: https://cnmf.org
Description: Custom WordPress theme for Concerned Nigerians and Migrants Forum (CNMF) - A union protecting immigrants abroad.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cnmf
Tags: custom-menu, featured-images, translation-ready
*/

/* ===== CSS Variables ===== */
:root {
    --color-primary: #1A4331;
    --color-primary-hover: #235A42;
    --color-primary-active: #112D21;
    --color-secondary: #D47A43;
    --color-secondary-hover: #E58A53;
    --color-secondary-active: #B36535;
    --color-background: #FDFBF7;
    --color-surface: #FFFFFF;
    --color-surface-alt: #F5F2EA;
    --color-text-primary: #1A1D1A;
    --color-text-secondary: #4A524A;
    --color-text-muted: #7A827A;
    --color-border: #E5E0D5;
    --color-success: #2D6A4F;
    --color-warning: #F4A261;
    --color-error: #E63946;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Work Sans', sans-serif;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-primary);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

@media (min-width: 768px) {
    h1 { font-size: 3.75rem; }
    h2 { font-size: 2.5rem; }
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

img {
    max-width: 100%;
    height: auto;
}

/* ===== Container ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* ===== Header & Navigation ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 224, 213, 0.5);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo img,
.custom-logo-link img {
    max-height: 50px;
    width: auto;
}

.logo-placeholder {
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--color-primary);
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
}

.main-nav a {
    position: relative;
    color: var(--color-text-secondary);
    font-weight: 500;
    padding: 0.5rem 0;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
}

.header-cta {
    display: none;
}

@media (min-width: 768px) {
    .header-cta {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

.mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: white;
    z-index: 200;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 1rem;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

.mobile-menu nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu nav a {
    display: block;
    padding: 1rem;
    border-radius: 0.5rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.mobile-menu nav a:hover,
.mobile-menu nav a.active {
    background-color: var(--color-surface-alt);
    color: var(--color-primary);
}

.mobile-menu-cta {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    color: white;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: white;
    border-radius: 9999px;
    padding: 1rem 2rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background-color: var(--color-secondary-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background-color: rgba(26, 67, 49, 0.05);
}

.btn-outline-white {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid white;
    color: white;
    border-radius: 9999px;
    padding: 1rem 2rem;
}

.btn-outline-white:hover {
    background: white;
    color: var(--color-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 67, 49, 0.6), rgba(26, 67, 49, 0.8));
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    padding: 4rem 0;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(212, 122, 67, 0.2);
    color: var(--color-secondary);
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    color: white;
    margin-bottom: 1.5rem;
}

.hero h1 span {
    color: var(--color-secondary);
}

.hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ===== Sections ===== */
.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 6rem 0;
    }
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 0.5rem;
}

.section-title {
    color: var(--color-primary);
}

.section-white {
    background-color: white;
}

.section-dark {
    background-color: var(--color-primary);
    color: white;
}

.section-dark .section-title {
    color: white;
}

/* ===== Cards ===== */
.card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-date {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.card-title {
    font-size: 1.125rem;
    margin: 0.5rem 0;
}

.card-excerpt {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
}

/* ===== Grid ===== */
.grid {
    display: grid;
    gap: 1.5rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

.grid-4 {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Calendar ===== */
.calendar-wrapper {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .calendar-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

.calendar {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav button {
    width: 32px;
    height: 32px;
    border: 1px solid var(--color-border);
    background: white;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav button:hover {
    background: var(--color-surface-alt);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    text-align: center;
}

.calendar-day-header {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    border-radius: 0.25rem;
    cursor: pointer;
    position: relative;
}

.calendar-day:hover {
    background: var(--color-surface-alt);
}

.calendar-day.today {
    background: var(--color-primary);
    color: white;
}

.calendar-day.has-event::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 6px;
    height: 6px;
    background: var(--color-secondary);
    border-radius: 50%;
}

.calendar-day.other-month {
    color: var(--color-text-muted);
}

.events-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.event-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--color-surface-alt);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background 0.2s ease;
}

.event-item:hover {
    background: var(--color-border);
}

.event-date-badge {
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.event-date-badge .month {
    font-size: 0.625rem;
    text-transform: uppercase;
}

.event-date-badge .day {
    font-size: 1.25rem;
    font-weight: 700;
}

.event-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.event-info p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

/* ===== Forms ===== */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.125rem;
    background: white;
    color: var(--color-text-primary);
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(26, 67, 49, 0.1);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.form-checkbox input {
    width: 20px;
    height: 20px;
    margin-top: 0.125rem;
    accent-color: var(--color-primary);
}

.form-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-radio {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-radio:hover {
    border-color: var(--color-primary);
}

.form-radio.selected {
    border-color: var(--color-primary);
    background: rgba(26, 67, 49, 0.05);
}

.form-radio input {
    accent-color: var(--color-primary);
}

/* ===== Form Steps ===== */
.form-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.form-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    background: var(--color-border);
    color: var(--color-text-muted);
    transition: all 0.2s ease;
}

.form-step.active .step-number {
    background: var(--color-primary);
    color: white;
}

.form-step.completed .step-number {
    background: var(--color-success);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
}

.form-step.active .step-label {
    color: var(--color-primary);
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--color-border);
    margin: 0 1rem;
}

.step-connector.completed {
    background: var(--color-primary);
}

/* ===== Form Card ===== */
.form-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .form-card {
        padding: 3rem;
    }
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.form-section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.conditional-fields {
    display: none;
    padding: 1rem;
    background: var(--color-surface-alt);
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.conditional-fields.show {
    display: block;
}

/* ===== Donation Page ===== */
.donation-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .donation-grid {
        grid-template-columns: 3fr 2fr;
    }
}

.amount-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.amount-btn {
    padding: 0.75rem;
    border: none;
    background: var(--color-surface-alt);
    color: var(--color-primary);
    font-weight: 600;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.amount-btn:hover,
.amount-btn.selected {
    background: var(--color-primary);
    color: white;
}

.custom-amount {
    position: relative;
}

.custom-amount .currency {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
}

.custom-amount input {
    padding-left: 2rem;
}

.impact-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
}

.impact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.impact-amount {
    background: rgba(212, 122, 67, 0.2);
    color: var(--color-secondary);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
}

.impact-text {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ===== Footer ===== */
.site-footer {
    background: var(--color-primary);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-about .logo-icon {
    background: white;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

.footer-title {
    font-size: 1.125rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

.footer-bottom a:hover {
    color: white;
}

/* ===== Page Headers ===== */
.page-header {
    position: relative;
    padding: 5rem 0;
    background: var(--color-primary);
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('assets/images/texture.png');
    background-size: cover;
    opacity: 0.2;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-header .section-label {
    color: var(--color-secondary);
}

.page-header h1 {
    color: white;
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.125rem;
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Subscribe Popup ===== */
.subscribe-popup {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.subscribe-popup.active {
    display: flex;
}

.subscribe-popup-content {
    background: white;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subscribe-header {
    background: var(--color-primary);
    padding: 2rem;
    text-align: center;
    position: relative;
}

.subscribe-header .icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.subscribe-header h3 {
    color: white;
    font-size: 1.25rem;
}

.subscribe-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    font-size: 1.25rem;
}

.subscribe-body {
    padding: 1.5rem;
}

.subscribe-body p {
    text-align: center;
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.subscribe-body .form-input {
    margin-bottom: 1rem;
}

.subscribe-body .btn {
    width: 100%;
}

.subscribe-body .disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 1rem;
}

/* ===== Header Ad Space ===== */
.header-ad-space {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
}

.header-ad-space .ad-banner {
    max-width: 728px;
    margin: 0 auto;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-ad-space .ad-placeholder {
    background: var(--color-surface-alt);
    border: 2px dashed var(--color-border);
    border-radius: 0.5rem;
    width: 100%;
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

/* ===== Ad Placeholder ===== */
.ad-placeholder {
    background: var(--color-surface-alt);
    border: 2px dashed var(--color-border);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: var(--color-text-muted);
}

.ad-placeholder .icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ===== Status Badges ===== */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-pending {
    background: rgba(244, 162, 97, 0.2);
    color: #B36535;
}

.badge-active {
    background: rgba(45, 106, 79, 0.2);
    color: #2D6A4F;
}

.badge-rejected {
    background: rgba(230, 57, 70, 0.2);
    color: #E63946;
}

/* ===== Tables ===== */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1rem;
    background: var(--color-surface-alt);
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--color-border);
}

.data-table tr:hover td {
    background: var(--color-background);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.alert-success {
    background: rgba(45, 106, 79, 0.1);
    border: 1px solid rgba(45, 106, 79, 0.3);
    color: var(--color-success);
}

.alert-error {
    background: rgba(230, 57, 70, 0.1);
    border: 1px solid rgba(230, 57, 70, 0.3);
    color: var(--color-error);
}

.alert-warning {
    background: rgba(244, 162, 97, 0.1);
    border: 1px solid rgba(244, 162, 97, 0.3);
    color: #B36535;
}

/* ===== Loader ===== */
.loader {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-border);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== Utility Classes ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }

.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
