/**
 * BCC Transcript Portal - Unified Theme
 * Consistent design across all pages matching index.php
 */

/* ============================================
   COLOR SYSTEM & VARIABLES
   ============================================ */
:root {
    /* Brand Colors */
    --yellow: #FFD600;
    --yellow-light: #FFF9C4;
    --dark-blue: #102542;
    --blue: #205375;
    --white: #fff;
    --gray: #f5f6fa;
    
    /* UI Elements */
    --radius: 22px;
    --radius-small: 8px;
    --radius-large: 36px;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(32,83,117,0.12);
    --shadow-md: 0 8px 24px rgba(16,37,66,0.08);
    --shadow-lg: 0 16px 64px 0 rgba(32,83,117,0.13);
    
    /* Transitions */
    --transition-fast: 0.18s;
    --transition-normal: 0.25s;
    --transition-slow: 0.3s;
}

/* ============================================
   BASE STYLES
   ============================================ */
body {
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', Arial, sans-serif;
    background: linear-gradient(120deg, var(--dark-blue) 50%, var(--blue) 100%);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.6;
}

* {
    box-sizing: border-box;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin: 0 0 1rem 0;
}

h1 { font-size: 2.5rem; color: var(--yellow); }
h2 { font-size: 2.1rem; color: var(--yellow); }
h3 { font-size: 1.8rem; color: var(--blue); }
h4 { font-size: 1.4rem; color: var(--blue); }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

/* ============================================
   CONTAINER
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navbar {
    background: var(--dark-blue);
    color: var(--yellow);
    box-shadow: 0 2px 18px 0 rgba(32,83,117,0.17);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--yellow);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo i {
    color: var(--yellow);
}

.logo .dot {
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--yellow);
    margin-left: 5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color var(--transition-fast), background var(--transition-fast);
    font-size: 1.09rem;
    border-radius: 5px;
    padding: 6px 14px;
}

.nav-links a:hover {
    color: var(--yellow);
    background: rgba(255, 214, 0, 0.06);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn, .btn-outline {
    padding: 8px 18px;
    border-radius: var(--radius);
    font-weight: 700;
    font-family: 'Quicksand', Arial, sans-serif;
    transition: all var(--transition-normal);
    border: none;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    text-align: center;
}

.btn {
    background: var(--yellow);
    color: var(--dark-blue);
}

.btn:hover {
    background: var(--yellow-light);
    color: var(--dark-blue);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,214,0,0.3);
}

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

.btn-outline:hover {
    background: var(--yellow);
    color: var(--dark-blue);
}

.btn-large {
    padding: 13px 30px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================
   CARDS
   ============================================ */
.card, .hero-card, .content-card {
    background: var(--blue);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lg);
    padding: 42px 34px;
    border: 2.2px solid var(--yellow);
    color: var(--white);
    margin-bottom: 25px;
}

.card-white {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 30px;
    border: 1.7px solid var(--yellow-light);
    color: var(--dark-blue);
    margin-bottom: 20px;
}

.card-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255,214,0,0.2);
}

.card-header h2, .card-header h3 {
    margin: 0;
    color: var(--yellow);
}

.card-body {
    padding: 20px 0;
}

.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px solid rgba(255,214,0,0.2);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--yellow);
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--yellow);
    border-radius: var(--radius-small);
    font-size: 16px;
    background: var(--white);
    color: var(--dark-blue);
    font-family: 'Quicksand', Arial, sans-serif;
    transition: all var(--transition-slow);
}

.form-control:focus {
    border-color: var(--yellow-light);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 214, 0, 0.2);
    transform: translateY(-2px);
}

.form-control::placeholder {
    color: #999;
}

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

select.form-control {
    cursor: pointer;
}

/* ============================================
   ALERTS & MESSAGES
   ============================================ */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-small);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.alert i {
    font-size: 1.3rem;
}

.alert-success {
    background: #e8f5e8;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.alert-error, .alert-danger {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

.alert-warning {
    background: #fff3e0;
    color: #e65100;
    border-left: 4px solid #ff9800;
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #2196f3;
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    margin-bottom: 15px;
    border-left: 4px solid #f44336;
    font-weight: 600;
}

.success-message {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: var(--radius-small);
    margin-bottom: 15px;
    border-left: 4px solid #4caf50;
    font-weight: 600;
}

/* ============================================
   TABLES
   ============================================ */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-small);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-small);
    overflow: hidden;
}

table thead {
    background: var(--dark-blue);
    color: var(--yellow);
}

table th {
    padding: 15px;
    text-align: left;
    font-weight: 700;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
    color: var(--dark-blue);
}

table tbody tr:hover {
    background: #f8f9fa;
}

table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BADGES & LABELS
   ============================================ */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-completed {
    background: #d4edda;
    color: #155724;
}

.badge-cancelled {
    background: #f8d7da;
    color: #721c24;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark-blue);
    color: var(--yellow);
    padding: 32px 0 15px;
    text-align: center;
    margin-top: 50px;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.03rem;
}

.footer a {
    color: var(--yellow);
    font-weight: 600;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer a:hover {
    color: var(--yellow-light);
    text-decoration: underline;
}

.footer p {
    margin: 8px 0;
}

/* ============================================
   FEATURES GRID (from index.php)
   ============================================ */
.features-section {
    padding: 55px 0 35px;
    background: var(--white);
    color: var(--dark-blue);
}

.section-title {
    text-align: center;
    font-size: 2.1rem;
    color: var(--yellow);
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 40px;
    font-weight: 800;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin: 0 10px;
    justify-items: center;
}

.feature-card {
    background: var(--gray);
    border-radius: var(--radius);
    padding: 36px 18px 26px;
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1.7px solid var(--yellow-light);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    position: relative;
    overflow: hidden;
    color: var(--blue);
    width: 100%;
    max-width: 320px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(16,37,66,0.12);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 18px;
}

.feature-card h3 {
    color: var(--blue);
    font-family: 'Montserrat', sans-serif;
    margin: 0 0 13px;
    font-size: 1.2rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--dark-blue);
    font-size: 1rem;
    margin: 0;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    padding: 80px 0 45px;
}

.hero-card {
    background: var(--blue);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-lg);
    padding: 62px 34px 54px;
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
    border: 2.2px solid var(--yellow);
    color: var(--white);
}

.hero-card h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: var(--yellow);
    margin-bottom: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.hero-card p {
    font-size: 1.19rem;
    color: var(--yellow-light);
    margin-bottom: 27px;
    line-height: 1.45;
    font-weight: 500;
}

/* ============================================
   LOADING STATES
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 214, 0, 0.3);
    border-radius: 50%;
    border-top-color: var(--yellow);
    animation: spin 1s ease-in-out infinite;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 37, 66, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-content {
    text-align: center;
    color: var(--yellow);
}

.loading-content h3 {
    color: var(--yellow);
    margin-top: 20px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

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

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

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-slide-in {
    animation: slideIn 0.5s ease-out;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 991.98px) {
    .hero-card {
        padding: 40px 25px;
        margin: 30px auto;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.8rem; }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 767.98px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-card {
        padding: 30px 20px;
        border-radius: 25px;
    }
    
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.6rem; }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-card {
        padding: 25px 15px;
        border-radius: 20px;
    }
    
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    
    .btn, .btn-outline {
        padding: 10px 16px;
        font-size: 0.95rem;
    }
}

