/* Relaro - Custom Styles */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --success-gradient: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    --danger-gradient: linear-gradient(135deg, #eb3349 0%, #f45c43 100%);
    --warning-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Gradients */
.bg-gradient-primary {
    background: var(--primary-gradient);
}

.bg-gradient-success {
    background: var(--success-gradient);
}

/* Custom Card Shadows */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

/* Forms */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 15px;
    transition: all 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Tables */
.table thead {
    background: #f8f9fa;
}

.table-bordered th,
.table-bordered td {
    border-color: #e0e0e0;
}

/* Badges */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Booking Grid */
.booking-block {
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.booking-block:hover {
    opacity: 0.9;
}

/* Alert */
.alert {
    border-radius: 8px;
    border: none;
}

/* Toast */
.toast {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Loading spinner */
.spinner-border {
    width: 1.5rem;
    height: 1.5rem;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e0e0e0;
}

.modal-footer {
    border-top: 1px solid #e0e0e0;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }

    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Status colors */
.status-confirmed { background-color: #10b981; }
.status-pending { background-color: #f59e0b; }
.status-seated { background-color: #3b82f6; }
.status-completed { background-color: #6b7280; }
.status-cancelled { background-color: #ef4444; }
.status-no-show { background-color: #dc2626; }

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Special request buttons */
.btn-check:checked + .btn-outline-secondary {
    background-color: #667eea;
    border-color: #667eea;
    color: white;
}

.btn-outline-secondary {
    font-size: 0.9rem;
    padding: 0.6rem 0.5rem;
}

.btn-outline-secondary i {
    font-size: 1.1rem;
}

/* Time slot buttons */
.btn-outline-primary {
    transition: all 0.2s ease;
}

.btn-check:checked + .btn-outline-primary {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* Badge color fixes for readability */
.badge.bg-purple {
    background-color: #6f42c1 !important;
    color: white !important;
}

.badge.bg-primary,
.badge.bg-success,
.badge.bg-danger,
.badge.bg-info,
.badge.bg-secondary,
.badge.bg-dark {
    color: white !important;
}

.badge.bg-warning,
.badge.bg-light {
    color: #000 !important;
}

/* Join group color badges */
.bg-group-a { background-color: #0d6efd !important; color: white !important; }
.bg-group-b { background-color: #198754 !important; color: white !important; }
.bg-group-c { background-color: #6f42c1 !important; color: white !important; }
.bg-group-d { background-color: #fd7e14 !important; color: white !important; }

/* ===========================================================================
   ONBOARDING WIZARD STYLES
   =========================================================================== */

/* Wizard step animations */
.wizard-step {
    min-height: 350px;
    animation: fadeIn 0.3s ease-in;
}

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

/* Progress bar styling */
#onboardingWizard .progress-bar {
    background-color: #1e6bf1;
    transition: width 0.3s ease;
}

#onboardingWizard .progress {
    background-color: #e9ecef;
}

/* Navigation badge pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.nav-link .badge.bg-warning {
    animation: pulse 2s infinite;
}

/* Wizard modal customization */
#onboardingWizard .modal-dialog {
    max-width: 800px;
}

#onboardingWizard .modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: none;
}

#onboardingWizard .modal-title {
    font-weight: 600;
}

/* Wizard cards */
.wizard-step .card {
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.wizard-step .card:hover {
    border-color: #1e6bf1;
    box-shadow: 0 4px 12px rgba(30, 107, 241, 0.1);
    transform: translateY(-2px);
}

/* Code block styling for widget embed */
#onboardingWizard .bg-dark {
    overflow-x: auto;
}

/* Success step styling */
#step5 .bi-check-circle {
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Readiness status alerts */
.wizard-step .alert {
    border-left: 4px solid;
    font-size: 0.95rem;
}

.wizard-step .alert-success {
    border-left-color: #28a745;
}

.wizard-step .alert-warning {
    border-left-color: #ffc107;
}

.wizard-step .alert-info {
    border-left-color: #17a2b8;
}

/* Quick form styling */
#quickTableForm .form-label {
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

/* Services list styling */
#servicesList .list-group-item {
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

#servicesList .list-group-item:hover {
    background-color: #f8f9fa;
    border-left-color: #1e6bf1;
}
.bg-group-e { background-color: #dc3545 !important; color: white !important; }
