:root {
    --primary: #c70e2b;
    --primary-dark: #a90c24;
    --secondary: #8b5cf6;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f3f4f6;
    --border: #e5e7eb;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f9fafb;
    min-height: 100vh;
    color: #1f2937;
}

/* Cards */
.card {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    transition: border-color 0.2s ease;
}

.card:hover {
    border-color: #d1d5db;
}

.card-gradient {
    background: var(--primary);
    color: white;
    border: none;
}

.card-gradient.success {
    background: var(--success);
}

.card-gradient.danger {
    background: var(--danger);
}

.card-gradient.info {
    background: var(--info);
}

/* Stat Cards */
.stat-card {
    padding: 1.5rem;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--border);
    transition: border-color 0.2s ease;
}

.stat-card:hover {
    border-color: #d1d5db;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.stat-icon.primary {
    background: #eff6ff;
    color: var(--primary);
}

.stat-icon.success {
    background: #f0fdf4;
    color: var(--success);
}

.stat-icon.warning {
    background: #fffbeb;
    color: var(--warning);
}

.stat-icon.danger {
    background: #fef2f2;
    color: var(--danger);
}

.stat-icon.info {
    background: #eff6ff;
    color: var(--info);
}

/* Buttons */
.btn {
    border-radius: 6px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: all 0.2s ease;
    border: none;
}

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

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

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

.btn-success:hover {
    background: #059669;
}

.btn-link {
    text-decoration: none;
}

.btn-link:hover, .btn-link:focus {
    text-decoration: none;
}

/* Tables */
.table {
    border-radius: 8px;
    overflow: visible;
}

.table thead th {
    background: #f9fafb;
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6b7280;
    padding: 1rem;
}

.table tbody tr {
    transition: background-color 0.2s ease;
}

.table tbody tr:hover {
    background: #f9fafb;
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
    border-color: var(--border);
}

/* Badges */
.badge {
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.75rem;
}

/* Forms */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid var(--border);
    padding: 0.65rem 1rem;
    transition: all 0.2s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-label.required::after,
label.required::after {
    content: ' *';
    color: var(--danger);
}

.section-title {
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Navbar */
.navbar {
    background: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: transparent;
}

.login-card {
    max-width: 420px;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo h1 {
    font-weight: 700;
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.login-logo p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Dashboard Container */
.dashboard-container {
    background: #f9fafb;
    min-height: 100vh;
}

.content-wrapper {
    padding: 2rem;
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }
}

/* Utilities */
.text-gradient {
    color: var(--primary);
}

.fade-in-up {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.site-footer {
    background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    color: #e5e7eb;
    border-top: 1px solid #374151;
}
.site-footer .footer-link {
    color: #e5e7eb;
    display: inline-block;
    padding: 4px 0;
}
.site-footer .footer-link:hover {
    color: #ffffff;
    text-decoration: none;
}
/* Footer link underline removal */
.footer-link {
    text-decoration: none;
    color: inherit;
}
.footer-link:hover, .footer-link:focus {
    text-decoration: none;
    color: inherit;
}
/* Brand logos */
.brand-logo {
    max-height: 50px;
    height: auto;
    width: auto;
    object-fit: contain;
}
.brand-logo--small {
    max-height: 24px;
    height: auto;
    width: auto;
    object-fit: contain;
}
/* Inner pages headings */
.content-wrapper h1,
.content-wrapper h2,
.content-wrapper h3,
.content-wrapper h4,
.content-wrapper h5,
.content-wrapper h6 {
    color: #000000;
}
/* Option card for radio selections */
.option-card {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.option-card:hover {
    border-color: #d1d5db;
}
.btn-check:checked + .option-card {
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.2);
}
.btn-check:focus + .option-card {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* Mobile Typography */
@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem !important;
    }
    h2 {
        font-size: 1.35rem !important;
    }
    h3 {
        font-size: 1.15rem !important;
    }
}
