/* Custom styles for the Robe Booking System */

/* Size selection buttons */
.size-option {
    position: relative;
}

.size-option.disabled {
    opacity: 0.5;
    pointer-events: none;
}

.size-btn {
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.size-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.btn-check:checked + .size-btn {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Collection method cards */
.card-body .btn-outline-success:hover,
.card-body .btn-outline-warning:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

/* Form enhancements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Table styling to match wireframe */
.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(var(--bs-primary-rgb), 0.05);
}

.table th {
    font-weight: 600;
    font-size: 1.1rem;
}

.table td {
    font-size: 1.2rem;
    font-weight: 500;
}

/* Alert customizations */
.alert {
    border-radius: 0.5rem;
}

/* Badge styling */
.badge {
    font-size: 0.8em;
}

/* Card hover effects */
.card:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}

/* Loading states */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Print styles */
@media print {
    .navbar,
    .btn,
    footer {
        display: none !important;
    }
    
    .card {
        border: 1px solid #000 !important;
        box-shadow: none !important;
    }
    
    .alert {
        border: 1px solid #000 !important;
        background-color: #f8f9fa !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .size-btn {
        height: 60px;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }
}

/* Animation for success page */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.5s ease-out;
}

/* Quantity selector styling */
#quantity {
    font-weight: bold;
    font-size: 1.1rem;
}

/* Status badges */
.badge.bg-success {
    background-color: var(--bs-success) !important;
}

.badge.bg-danger {
    background-color: var(--bs-danger) !important;
}

.badge.bg-warning {
    background-color: var(--bs-warning) !important;
    color: var(--bs-dark) !important;
}

/* Custom spacing */
.mb-4 {
    margin-bottom: 1.5rem !important;
}

/* Form validation styles */
.form-control.is-invalid {
    border-color: var(--bs-danger);
}

.form-control.is-valid {
    border-color: var(--bs-success);
}

/* Loading spinner (for future use) */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Icon styling */
.fa-2x {
    font-size: 2em;
}

.fa-3x {
    font-size: 3em;
}

.fa-4x {
    font-size: 4em;
}

/* Navbar brand styling */
.navbar-brand {
    font-weight: 600;
}

/* Footer styling */
footer {
    margin-top: auto;
}

/* Sticky footer */
html, body {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* Wireframe-specific styling */
.nav-tabs .nav-link {
    color: var(--bs-body-color);
}

.nav-tabs .nav-link.active {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}

/* Success message styling */
.alert-success h5 {
    color: var(--bs-success);
    font-weight: 600;
}

/* Representative form styling */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Booking details card */
.card .card-header h5 {
    margin-bottom: 0;
    font-weight: 600;
}

/* Size selection table for main menu */
.table-bordered th,
.table-bordered td {
    border: 2px solid var(--bs-border-color);
}

.table-dark th {
    background-color: var(--bs-dark);
    color: white;
    font-weight: 600;
}

/* Collection method radio styling */
.form-check-input:checked[type=radio] {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.form-check-label {
    cursor: pointer;
}

/* Quantity controls */
.btn-outline-secondary {
    border-color: var(--bs-secondary);
    color: var(--bs-secondary);
}

.btn-outline-secondary:hover {
    background-color: var(--bs-secondary);
    border-color: var(--bs-secondary);
    color: white;
}

/* Success page specific styling */
.bg-success.text-white {
    background-color: var(--bs-success) !important;
    color: white !important;
}

/* Booking history table */
.table-hover tbody tr:hover {
    background-color: rgba(var(--bs-primary-rgb), 0.075);
}

/* Error pages styling */
.display-4 {
    font-weight: 700;
    color: var(--bs-danger);
}

/* Representative form warning */
.alert-warning {
    background-color: rgba(var(--bs-warning-rgb), 0.1);
    border-color: var(--bs-warning);
    color: var(--bs-warning-text);
}

.alert-warning .fas {
    color: var(--bs-warning);
}

/* Main menu wireframe-specific styles */
.main-menu-table {
    max-width: 500px;
    margin: 0 auto;
}

.main-menu-table .table th,
.main-menu-table .table td {
    text-align: center;
    padding: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Enhanced button styling */
.btn-primary {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    font-weight: 500;
}

.btn-primary:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Size quantity display */
.size-quantity {
    font-size: 0.9rem;
    color: var(--bs-secondary);
}

/* Collection method card enhancements */
.collection-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.collection-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.collection-card.selected {
    border-color: var(--bs-primary);
    background-color: rgba(var(--bs-primary-rgb), 0.1);
}

/* Booking confirmation styles */
.booking-summary {
    background-color: rgba(var(--bs-info-rgb), 0.1);
    border-left: 4px solid var(--bs-info);
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Representative form specific styles */
.representative-warning {
    background-color: rgba(var(--bs-warning-rgb), 0.1);
    border-left: 4px solid var(--bs-warning);
}
