@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --primary-maroon: #A31D1D;
    --primary-red: #D13131;
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --text-dark: #111827;
    --text-muted: #6B7280;
    --border-light: #F3F4F6;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-white);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Updated Button Styles */
.btn-maroon {
    background-color: var(--primary-maroon);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 1.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    box-shadow: 0 4px 12px rgba(163, 29, 29, 0.15);
}

.btn-maroon:hover {
    background-color: var(--primary-red);
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(163, 29, 29, 0.25);
}

.btn-maroon:active {
    transform: scale(0.97);
}

.btn-outline-maroon {
    border: 2px solid var(--border-light);
    background: transparent;
    color: var(--text-dark);
    padding: 0.875rem 2rem;
    border-radius: 1.25rem;
    font-weight: 700;
    font-size: 0.9375rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
}

.btn-outline-maroon:hover {
    border-color: var(--primary-maroon);
    color: var(--primary-maroon);
    background-color: rgba(163, 29, 29, 0.02);
}

/* Premium Card Refinement */
.card-premium {
    background: white;
    border-radius: 2rem;
    padding: 2rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: var(--transition-smooth);
}

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

.card-premium:hover {
    transform: translateY(-4px);
    border-color: rgba(163, 29, 29, 0.1);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

@media (max-width: 640px) {
    .card-premium:hover {
        transform: none;
    }
}

/* Badge Logic */
.badge-status {
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Step Circles for Multi-step Form */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 14px;
    border: 2px solid #E5E7EB;
    background: #F9FAFB;
    color: #9CA3AF;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0 auto;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-item.active .step-circle {
    border-color: var(--primary-maroon);
    background: rgba(163, 29, 29, 0.05);
    color: var(--primary-maroon);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.animate-fadeIn {
    animation: fadeIn 0.4s ease-out forwards;
}

/* General Layout helpers */
.section-padding { padding: 4rem 0; }
.section-title { font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.section-subtitle { color: var(--text-muted); font-size: 1rem; max-width: 36rem; margin: 0 auto; }

@media (min-width: 768px) {
    .section-padding { padding: 6rem 0; }
    .section-title { font-size: 2.5rem; }
    .section-subtitle { font-size: 1.125rem; }
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Mobile card view for tables */
@media (max-width: 768px) {
    .responsive-table thead {
        display: none;
    }
    
    .responsive-table tbody tr {
        display: block;
        margin-bottom: 1rem;
        padding: 1rem;
        background: white;
        border-radius: 1rem;
        border: 1px solid #F3F4F6;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
    
    .responsive-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #F9FAFB;
    }
    
    .responsive-table tbody td:last-child {
        border-bottom: none;
    }
    
    .responsive-table tbody td::before {
        content: attr(data-label);
        font-weight: 700;
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        color: #9CA3AF;
        margin-right: 1rem;
        flex-shrink: 0;
    }
}

/* Admin sidebar transition */
.admin-sidebar {
    transition: transform 0.3s ease, width 0.3s ease;
}

/* Safe area bottom for mobile nav */
.safe-area-bottom {
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}

/* Form input focus animation */
input:focus, select:focus, textarea:focus {
    transition: all 0.3s ease;
}

/* Glassmorphism effect for admin cards */
.glass-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Pulse dot animation */
@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.pulse-dot {
    animation: pulse-dot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
