/* Base Resets & Global */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Outfit', sans-serif; background-color: #f8fafc; color: #334155; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Footer matches index.html */
.site-header { padding: 20px 0; background: #1e293b; color: white; }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.logo-text { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.logo-text img { max-height: 60px; width: auto; }
.logo-text span { color: #95C11F; }
.nav { display: flex; gap: 30px; font-weight: 500; }
.nav a:hover { color: #95C11F; }

.containerfooter { text-align: center; padding: 20px 0; margin-top: 40px;}
.footer-logo { max-width: 160px; width: 100%; height: auto; display: block; margin: 0 auto 20px auto; }

/* My Bookings Portal Specific Styles */
.portal-section { padding: 60px 0; min-height: calc(100vh - 200px); }
.portal-header { text-align: center; margin-bottom: 40px; }
.portal-header h1 { font-size: 2.5rem; color: #1e293b; margin-bottom: 10px; }
.portal-header p { color: #64748b; font-size: 1.1rem; }

.search-container {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    max-width: 700px;
    margin: 0 auto 40px;
    border: 1px solid #e2e8f0;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: #f8fafc;
}

.form-group input:focus {
    border-color: #95C11F;
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(149, 193, 31, 0.1);
}

.btn-primary {
    background: #95C11F;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.btn-primary:hover:not(:disabled) {
    background: #7ca119;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(149, 193, 31, 0.3);
}

.btn-primary:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-danger:hover { background: #dc2626; }

.btn-outline {
    background: transparent;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-outline:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

/* Feedback & Status */
.status-message {
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-weight: 500;
    text-align: center;
    animation: fadeIn 0.3s ease;
}

.status-error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.status-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.status-info { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }

/* Bookings Grid */
.bookings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 400px));
    gap: 30px;
    justify-content: center;
}

.booking-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -5px rgba(0,0,0,0.1);
    border-color: #cbd5e1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #e2e8f0;
}

.booking-id {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e293b;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.card-body { flex: 1; margin-bottom: 20px; }

.route-info { margin-bottom: 15px; }
.route-title { font-size: 1.25rem; font-weight: 700; color: #1e293b; margin-bottom: 5px; }
.route-date { font-size: 0.95rem; color: #64748b; display: flex; align-items: center; gap: 5px; }

.details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: #f8fafc;
    padding: 15px;
    border-radius: 12px;
}

.detail-item { display: flex; flex-direction: column; gap: 4px; }
.detail-label { font-size: 0.75rem; text-transform: uppercase; font-weight: 700; color: #94a3b8; }
.detail-value { font-size: 0.95rem; font-weight: 600; color: #334155; }

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.card-actions button { flex: 1; }

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
    border: 1px dashed #cbd5e1;
    color: #64748b;
}

.empty-state h3 { color: #1e293b; margin-bottom: 10px; font-size: 1.5rem; }

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

/* Mobile responsive */
@media (max-width: 768px) {
    .nav { display: none; }
    .portal-header h1 { font-size: 2rem; }
    .bookings-grid { grid-template-columns: 1fr; }
    .search-container { padding: 20px; }
}
