/* Self-Garage Reservation System - Custom Styles */

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --dark-color: #1f2937;
    --light-gray: #f3f4f6;
    --border-radius: 12px;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f9fafb;
    color: var(--dark-color);
}

/* Header */
.navbar {
    background-color: white !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.btn-hero {
    background-color: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    padding: 15px 40px;
    border-radius: var(--border-radius);
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.btn-hero:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Progress Bar */
.progress-container {
    background-color: white;
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.progress {
    height: 12px;
    border-radius: 20px;
    background-color: #e5e7eb;
}

.progress-bar {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 20px;
    transition: width 0.4s ease;
}

/* Timer Alert */
.timer-alert {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid var(--warning-color);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    margin-bottom: 25px;
    animation: pulse 2s infinite;
}

.timer-display {
    font-size: 2.5rem;
    font-weight: 700;
    color: #92400e;
    font-family: 'Courier New', monospace;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* Card Styles */
.card-custom {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: white;
    height: 100%;
}

.card-custom:hover {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.card-custom.selected {
    border-color: var(--primary-color);
    background-color: #eff6ff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.card-body {
    padding: 25px;
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Resource Cards */
.resource-option {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.resource-option:hover {
    border-color: var(--primary-color);
    background-color: #f0f9ff;
}

.resource-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 12px;
}

.favorite-star {
    color: var(--warning-color);
    font-size: 1.2rem;
}

/* Calendar Styles */
.calendar {
    background-color: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
}

.calendar-day:hover:not(.disabled) {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.calendar-day.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-day.disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Time Slots */
.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 20px 0;
}

.time-slot {
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background-color: white;
    font-weight: 500;
}

.time-slot:hover:not(.disabled) {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.time-slot.selected {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.time-slot.disabled {
    background-color: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.5;
}

/* Equipment Selection */
.equipment-item {
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 15px;
    background-color: white;
}

.equipment-item.selected {
    border-color: var(--secondary-color);
    background-color: #f0fdf4;
}

/* Summary Box */
.summary-box {
    background-color: white;
    border: 2px solid #e5e7eb;
    border-radius: var(--border-radius);
    padding: 25px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-total {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    padding-top: 15px;
    border-top: 2px solid var(--dark-color);
}

/* Buttons */
.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline-custom {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    background-color: white;
    transition: all 0.2s;
}

.btn-outline-custom:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Alert Boxes */
.alert-custom {
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 20px;
}

.alert-info-custom {
    background-color: #dbeafe;
    border-left: 4px solid var(--primary-color);
    color: #1e40af;
}

.alert-warning-custom {
    background-color: #fef3c7;
    border-left: 4px solid var(--warning-color);
    color: #92400e;
}

.alert-success-custom {
    background-color: #d1fae5;
    border-left: 4px solid var(--secondary-color);
    color: #065f46;
}

/* Quick Booking Card */
.quick-booking {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 2px solid var(--primary-color);
    border-radius: var(--border-radius);
    padding: 20px;
    margin-bottom: 25px;
}

/* Pricing Table */
.pricing-table {
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pricing-table table {
    margin: 0;
}

/* Confirmation Success */
.success-icon {
    font-size: 5rem;
    color: var(--secondary-color);
    margin: 30px 0;
}

.confirmation-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

footer a {
    color: #93c5fd;
    text-decoration: none;
}

footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section p {
        font-size: 1rem;
    }

    .timer-display {
        font-size: 1.8rem;
    }

    .time-slot-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .calendar-grid {
        gap: 5px;
    }
}

/* Loading Spinner */
.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Waitlist Modal Styles */
.modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 2px solid #e5e7eb;
    padding: 20px 25px;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    border-top: 2px solid #e5e7eb;
    padding: 20px 25px;
}
