﻿/* Bellwood Elite Premium Color Palette */
:root {
    --bellwood-gold: #CBA135;
    --bellwood-gold-light: #E5C362;
    --bellwood-gold-dark: #A98229;
    --bellwood-cream: #F5F5DC;
    --bellwood-charcoal: #2D2D2D;
    --bellwood-ink: #1A1A1A;
    --bellwood-gray: #4A4A4A;
    --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-strong: 0 20px 25px rgba(0, 0, 0, 0.3);
    --gold-glow: 0 0 20px rgba(203, 161, 53, 0.3);
}

/* Global Styles */
body {
    background: linear-gradient(135deg, var(--bellwood-ink) 0%, #252525 100%);
    color: var(--bellwood-cream);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
}

/* Premium Text Styles */
.text-bellwood-gold {
    color: var(--bellwood-gold) !important;
    text-shadow: 0 2px 4px rgba(203, 161, 53, 0.2);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Navigation Bar - Premium Look */
.navbar {
    background: linear-gradient(180deg, var(--bellwood-charcoal) 0%, #242424 100%) !important;
    border-bottom: 2px solid var(--bellwood-gold);
    box-shadow: var(--shadow-medium);
    backdrop-filter: blur(10px);
}

.navbar-brand {
    color: var(--bellwood-gold) !important;
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 0 2px 8px rgba(203, 161, 53, 0.4);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--bellwood-gold-light) !important;
    text-shadow: var(--gold-glow);
}

/* Premium Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--bellwood-gold) 0%, var(--bellwood-gold-dark) 100%);
    border: none;
    color: var(--bellwood-ink);
    font-weight: 600;
    padding: 0.5rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--bellwood-gold-light) 0%, var(--bellwood-gold) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 161, 53, 0.4);
}

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

.btn-outline-primary {
    border: 2px solid var(--bellwood-gold);
    color: var(--bellwood-gold);
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: var(--bellwood-gold);
    color: var(--bellwood-ink);
    box-shadow: var(--gold-glow);
}

/* Premium Card Styles with Glassmorphism */
.card {
    background: rgba(45, 45, 45, 0.8);
    border: 1px solid rgba(203, 161, 53, 0.3);
    color: var(--bellwood-cream);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--bellwood-gold), var(--bellwood-gold-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.hover-card {
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(203, 161, 53, 0.2), var(--gold-glow);
    border-color: var(--bellwood-gold);
}

.card-title {
    color: var(--bellwood-gold);
    margin-bottom: 1rem;
}

.card-body {
    position: relative;
}

/* Status Chips - Premium Design */
.status-chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-soft);
    transition: all 0.2s ease;
}

.status-chip:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
}

/* Booking Status Colors */

/* Requested — internal only, grey (Pending Review) */
.status-requested {
    background: linear-gradient(135deg, #4b5563 0%, #6b7280 100%);
    color: white;
}

/* Received — amber (Under Review, customer-visible) */
.status-received {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    color: white;
}

/* Confirmed — green */
.status-confirmed {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
}

/* Scheduled — blue */
.status-scheduled {
    background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    color: white;
}

/* InProgress — gold/active (API value "InProgress" → ToLower() = "inprogress") */
.status-inprogress,
.status-in-progress {
    background: linear-gradient(135deg, var(--bellwood-gold) 0%, var(--bellwood-gold-light) 100%);
    color: var(--bellwood-ink);
}

/* Completed — muted grey-green */
.status-completed {
    background: linear-gradient(135deg, #6b7280 0%, #9ca3af 100%);
    color: white;
}

/* Cancelled — red */
.status-cancelled {
    background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
    color: white;
}

/* NoShow — muted red (API value "NoShow" → ToLower() = "noshow") */
.status-noshow {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    color: rgba(255, 255, 255, 0.85);
}

/* Quote Status Colors */
.status-submitted {
    background: linear-gradient(135deg, #0dcaf0 0%, #31d2f2 100%);
    color: #000;
}

.status-inreview {
    background: linear-gradient(135deg, #ffc107 0%, #ffcd38 100%);
    color: #000;
}

.status-priced {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
    color: #fff;
}

.status-rejected {
    background: linear-gradient(135deg, #dc3545 0%, #e4606d 100%);
    color: #fff;
}

.status-closed {
    background: linear-gradient(135deg, #6c757d 0%, #868e96 100%);
    color: #fff;
}

/* Form Controls - Premium Style */
.form-control {
    background: rgba(45, 45, 45, 0.6);
    border: 1px solid rgba(203, 161, 53, 0.3);
    color: var(--bellwood-cream);
    border-radius: 8px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(45, 45, 45, 0.8);
    border-color: var(--bellwood-gold);
    box-shadow: 0 0 0 3px rgba(203, 161, 53, 0.1);
    color: var(--bellwood-cream);
    outline: none;
}

.form-control::placeholder {
    color: rgba(245, 245, 220, 0.5);
}

.form-label {
    color: var(--bellwood-gold);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.alert-danger {
    background: rgba(220, 38, 38, 0.2);
    border-left: 4px solid #dc2626;
    color: #fecaca;
}

.alert-info {
    background: rgba(13, 202, 240, 0.2);
    border-left: 4px solid #0dcaf0;
    color: #a5f3fc;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-left: 4px solid #ffc107;
    color: #fef3c7;
}

/* Loading Spinner */
.spinner-border {
    border-width: 3px;
}

.spinner-border.text-bellwood-gold {
    border-color: var(--bellwood-gold);
    border-right-color: transparent;
}

/* Button Groups */
.btn-group .btn {
    border-radius: 0;
    border-right: 1px solid rgba(203, 161, 53, 0.3);
}

.btn-group .btn:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.btn-group .btn:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    border-right: none;
}

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

.container-fluid, .card {
    animation: fadeIn 0.5s ease-out;
}

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

::-webkit-scrollbar-track {
    background: var(--bellwood-ink);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--bellwood-gold-light);
}

/* Link Styles */
a {
    color: var(--bellwood-gold);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--bellwood-gold-light);
}

/* Display Headings - Premium */
.display-4 {
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(203, 161, 53, 0.3);
}

/* Badge/Chip Hover Effects */
.badge {
    transition: all 0.2s ease;
}

.badge:hover {
    transform: scale(1.1);
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid var(--bellwood-gold);
    outline-offset: 2px;
}

/* Disabled State */
.btn:disabled,
.btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Premium Container Spacing */
.container-fluid {
    padding: 2rem;
}

@media (min-width: 768px) {
    .container-fluid {
        padding: 3rem;
    }
}

/* Row Gaps */
.row.g-4 {
    --bs-gutter-y: 1.5rem;
}

/* Text Utilities */
.text-muted {
    color: rgba(245, 245, 220, 0.6) !important;
}

small.text-muted {
    color: rgba(245, 245, 220, 0.5) !important;
}

/* Lead Text */
.lead {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(245, 245, 220, 0.9);
}