@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Image Ajaib - Luxury Crimson & Mahogany Chocolate Theme */
    --bg-dark: #120707;
    --sidebar-bg: #180a0a;
    --sidebar-border: rgba(244, 63, 94, 0.12);
    --accent: #be123c; /* Rose Ruby Crimson */
    --accent-hover: #9f1239;
    --accent-crimson: #e11d48;
    --accent-chocolate: #78350f;
    --accent-bronze: #d97706;
    --accent-amber: #f59e0b;
}

* {
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}

body {
    background-color: #faf5f5;
    color: #261414;
    overflow-x: hidden;
}

/* Custom Scrollbar - Warm Rose Tint */
.custom-scrollbar::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}
.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(190, 18, 60, 0.25);
    border-radius: 9999px;
}
.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(190, 18, 60, 0.45);
}

/* Sidebar Button - Premium Reddish Brown */
.sidebar-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #cbd5e1;
    border-radius: 0.75rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.sidebar-btn:hover {
    color: #ffffff;
    background: rgba(225, 29, 72, 0.12);
    transform: translateX(2px);
}
.sidebar-btn.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(190, 18, 60, 0.38) 0%, rgba(120, 53, 15, 0.25) 100%);
    border-color: rgba(244, 63, 94, 0.55);
    box-shadow: 0 4px 14px rgba(190, 18, 60, 0.25);
    font-weight: 600;
}
.sidebar-btn.active i {
    color: #fb7185 !important;
}

/* Option Button - Warm Chocolate & Crimson Borders */
.option-btn {
    padding: 0.625rem 0.875rem;
    border-radius: 0.75rem;
    border: 1.5px solid #fed7aa;
    background: #ffffff;
    color: #451a03;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
    text-align: center;
}
.option-btn:hover {
    border-color: #fca5a5;
    background: #fff1f2;
    color: #be123c;
}
.option-btn.selected {
    border-color: #be123c;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    color: #9f1239;
    box-shadow: 0 0 0 1px #be123c, 0 4px 12px rgba(190, 18, 60, 0.18);
}

/* Upload Box / Zone */
.upload-zone, .upload-box {
    border: 2px dashed #fca5a5;
    border-radius: 1rem;
    background: #fff8f8;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.upload-zone:hover, .upload-box:hover {
    border-color: #be123c;
    background: #fff1f2;
}

/* Badges - Royal Bronze Gold & Ruby Velvet */
.sf-vip-badge {
    background: linear-gradient(135deg, #92400e 0%, #b45309 50%, #d97706 100%);
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(146, 64, 14, 0.3);
}
.sf-pro-badge {
    background: linear-gradient(135deg, #881337 0%, #be123c 50%, #e11d48 100%);
    color: #ffffff;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.125rem 0.375rem;
    border-radius: 0.375rem;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 6px rgba(190, 18, 60, 0.3);
}

/* Animated Title - Luxury Sunset Red-Bronze */
.animated-title {
    background: linear-gradient(135deg, #be123c 0%, #b45309 50%, #e11d48 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Pulsing Live Dots */
.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    position: relative;
}
.live-indicator::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background-color: #ef4444;
    opacity: 0.4;
    animation: pulse 1.8s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

/* Loading Spinner - Crimson Rose */
.spinner {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 3px solid #ffffff;
    width: 20px;
    height: 20px;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Card Loading Spinner & State */
.card .spinner, 
[id$="results-grid"] .spinner, 
.card-loading-spinner, 
.sf-loading-spinner {
    border: 3.5px solid #ffe4e6 !important;
    border-top: 3.5px solid #be123c !important;
    border-radius: 50% !important;
    width: 44px !important;
    height: 44px !important;
    animation: spin 0.85s linear infinite !important;
}

/* Loading Card Container with pulse and soft shadow */
.card-loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(180deg, #fff5f5 0%, #fdf2f2 100%);
    border: 1.5px dashed #fecdd3;
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}

.card {
    background-color: #ffffff;
    border-radius: 1rem;
    border: 1px solid #fee2e2;
    transition: all 0.2s ease;
}
.card:hover {
    box-shadow: 0 10px 25px -5px rgba(120, 53, 15, 0.08);
}
.tutorial-btn {
    transition: all 0.2s ease;
}
.tutorial-btn:hover {
    transform: translateY(-1px);
}

/* VIP Sidebar Item Styling - Luxury Mahogany Bronze */
.sidebar-btn-vip {
    color: #fed7aa !important;
    border: 1px solid rgba(217, 119, 6, 0.25) !important;
    background: linear-gradient(90deg, rgba(146, 64, 14, 0.18) 0%, rgba(190, 18, 60, 0.08) 100%) !important;
}
.sidebar-btn-vip:hover {
    color: #ffffff !important;
    border-color: rgba(244, 63, 94, 0.45) !important;
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.28) 0%, rgba(225, 29, 72, 0.18) 100%) !important;
    transform: translateX(2px);
    box-shadow: 0 2px 10px rgba(180, 83, 9, 0.2);
}
.sidebar-btn-vip.active {
    color: #ffffff !important;
    background: linear-gradient(90deg, rgba(180, 83, 9, 0.45) 0%, rgba(190, 18, 60, 0.35) 100%) !important;
    border-color: rgba(251, 146, 60, 0.7) !important;
    box-shadow: 0 4px 16px rgba(180, 83, 9, 0.25) !important;
    font-weight: 700 !important;
}
.sidebar-btn-vip.active i {
    color: #fdba74 !important;
}
