:root {
    --dark-teal: var(--header-bg, #0f3d4c);
    --dark-teal-hover: var(--button-hover-bg, #0c2f3a);
    --light-gray: var(--page-bg, #f4f6f8);
    --white: var(--card-bg, #ffffff);
    --text-color: #333;
    --border-radius: 12px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--light-gray);
    color: var(--text-color);
    line-height: 1.6;
}

/* Header Styles - themeable */
.header {
    background-color: var(--header-bg, var(--dark-teal));
    color: var(--header-text, var(--white));
    padding: 1rem 0;
    box-shadow: var(--box-shadow);
}

.header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.header h1 i {
    margin-right: 10px;
}

/* Main Content Styles */
.main-content {
    min-height: calc(100vh - 140px);
    padding: 2rem 0;
}

/* Card Styles */
.custom-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.custom-card:hover {
    transform: translateY(-5px);
}

/* Form Styles */
.form-label {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--heading-color, var(--dark-teal));
    box-shadow: 0 0 0 0.2rem rgba(15, 61, 76, 0.25);
}

/* Button Styles - themeable */
.btn-custom {
    background-color: var(--button-bg, var(--dark-teal));
    color: var(--button-text, var(--white));
    border: none;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-custom:hover {
    background-color: var(--button-hover-bg, var(--dark-teal-hover));
    color: var(--button-text, var(--white));
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.btn-custom:last-child {
    margin-bottom: 0;
}

.btn-paypal {
    background-color: #003087;
}

.btn-paypal:hover {
    background-color: #00246b;
}

.btn-paystack {
    background-color: #0ba4db;
}

.btn-paystack:hover {
    background-color: #0987b3;
}

/* Payment Buttons Container */
.payment-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Certificate Preview */
.certificate-preview {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 2px dashed var(--heading-color, var(--dark-teal));
}

.certificate-preview h4 {
    color: var(--heading-color, var(--dark-teal));
    font-weight: 700;
    margin-bottom: 1rem;
}

.certificate-preview p {
    margin-bottom: 0.5rem;
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner-container {
    text-align: center;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--dark-teal);
}

/* Dashboard Styles */
.dashboard-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.dashboard-card h3 {
    color: var(--heading-color, var(--dark-teal));
    font-weight: 700;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--light-gray);
}

.info-item {
    margin-bottom: 1rem;
}

.info-label {
    font-weight: 600;
    color: var(--heading-color, var(--dark-teal));
    display: block;
    margin-bottom: 0.25rem;
}

.info-value {
    color: var(--text-color);
}

.uploaded-photo {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: var(--box-shadow);
}

/* Admin Table Styles */
.admin-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.admin-table thead {
    background-color: var(--header-bg, var(--dark-teal));
    color: var(--header-text, var(--white));
}

.admin-table th {
    font-weight: 600;
    padding: 1rem;
}

.admin-table td {
    padding: 1rem;
    vertical-align: middle;
}

.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.status-pending {
    background-color: #fff3cd;
    color: #856404;
}

.status-paid {
    background-color: #d4edda;
    color: #155724;
}

/* Footer Styles - themeable, enhanced */
.footer {
    background-color: var(--footer-bg, var(--dark-teal));
    color: var(--footer-text, var(--white));
    padding: 2.5rem 0 1.25rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.footer-logo {
    height: 36px;
    width: auto;
    border-radius: 8px;
    opacity: 0.95;
}

.footer-logo-icon {
    font-size: 1.75rem;
    opacity: 0.9;
}

.footer-site-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--footer-text, #fff);
}

.footer-bottom {
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .custom-card {
        padding: 1.5rem;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .btn-custom {
        padding: 0.6rem 1rem;
    }
    
    .certificate-preview {
        padding: 1rem;
    }
}

/* Print Styles */
@media print {
    .header, .footer, .btn-custom, .no-print {
        display: none !important;
    }
    
    .main-content {
        padding: 0;
        min-height: auto;
    }
    
    .certificate-print {
        padding: 2rem;
        text-align: center;
    }
    
    .certificate-print h1 {
        color: var(--dark-teal);
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .certificate-print .certificate-content {
        border: 2px solid var(--dark-teal);
        padding: 3rem;
        margin: 2rem 0;
    }
}