/**
 * Golden Ticket Visit - Custom Styles
 * Based on Wales High School design guidelines
 */

:root {
    --navy-primary: #001A7F;
    --navy-dark: #2D3387;
    --navy-light: #3763AB;
    --gold-primary: #ffbd33;
    --gray-text: #6b7280;
    --bg-light: #e8f0f7;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Typography */
body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

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

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: var(--gold-primary);
    color: var(--navy-primary);
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 189, 51, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 189, 51, 0.5);
    background: #ffc84d;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 32px;
    background: white;
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    border: 2px solid var(--navy-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* Progress Steps */
.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.step-indicator > div {
    background: #e5e7eb;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.step-indicator.active > div {
    background: var(--gold-primary);
    color: var(--navy-primary);
    box-shadow: 0 0 0 4px rgba(255, 189, 51, 0.2);
}

.step-indicator.completed > div {
    background: var(--navy-primary);
    color: white;
}

.step-indicator.active {
    color: var(--gold-primary);
}

.step-indicator.completed {
    color: var(--navy-primary);
}

.step-line {
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: var(--navy-primary);
}

/* Wizard Steps */
.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease-in;
}

.wizard-step.active {
    display: block;
}

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

/* Date Selection */
.date-option input:checked + div {
    border-color: var(--gold-primary);
    background: #fffbf0;
    box-shadow: 0 4px 15px rgba(255, 189, 51, 0.3);
}

.date-option:hover div {
    transform: translateY(-2px);
}

/* Time Slot Selection */
.timeslot-option input:checked + div {
    border-color: var(--gold-primary);
    background: #fffbf0;
    box-shadow: 0 4px 15px rgba(255, 189, 51, 0.3);
}

.timeslot-option input:disabled + div {
    opacity: 0.5;
    cursor: not-allowed;
}

.timeslot-option input:disabled + div:hover {
    border-color: #e5e7eb;
    transform: none;
}

/* Availability Badge */
.availability-badge {
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.availability-badge.available {
    background: #d1fae5;
    color: #065f46;
}

.availability-badge.limited {
    background: #fed7aa;
    color: #92400e;
}

.availability-badge.full {
    background: #fee2e2;
    color: #991b1b;
}

/* Form Elements */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    transition: all 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(255, 189, 51, 0.1);
}

/* Admin Panel Styles */
.admin-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.admin-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    border-left: 4px solid var(--gold-primary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--navy-primary);
    font-family: 'Oswald', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Table Styles */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.data-table thead {
    background: var(--navy-primary);
    color: white;
}

.data-table thead th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
}

.data-table thead th:first-child {
    border-radius: 8px 0 0 0;
}

.data-table thead th:last-child {
    border-radius: 0 8px 0 0;
}

.data-table tbody tr {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    transition: background 0.2s ease;
}

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

.data-table tbody td {
    padding: 16px;
}

/* Status Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-confirmed {
    background: #d1fae5;
    color: #065f46;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-completed {
    background: #dbeafe;
    color: #1e40af;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--gold-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: white;
    padding: 32px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .step-indicator span {
        display: none;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 0.875rem;
    }

    .stat-value {
        font-size: 2rem;
    }
}

/* Print Styles */
@media print {
    .no-print {
        display: none;
    }

    body {
        background: white;
    }

    .admin-card,
    .stat-card {
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--navy-primary);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus visible for keyboard navigation */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}
