/* Custom Premium Styling for Becca App Platform */

:root {
    --brand-glow: radial-gradient(circle, rgba(147, 51, 234, 0.15) 0%, transparent 70%);
}

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

::-webkit-scrollbar-track {
    background: #0b0f19;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #3b0764;
}

/* Base Body Background Gradient */
body {
    font-family: 'Outfit', sans-serif;
    background: radial-gradient(circle at 80% 10%, rgba(147, 51, 234, 0.07), transparent 45%),
                radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.04), transparent 40%),
                #070a13;
    background-attachment: fixed;
}

/* Premium Glassmorphism */
.glassmorphism {
    background: rgba(11, 15, 30, 0.65);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glassmorphism-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glassmorphism-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(147, 51, 234, 0.25);
    box-shadow: 0 8px 30px 0 rgba(147, 51, 234, 0.05);
    transform: translateY(-2px);
}

/* Input Styles Focus Ring Override */
input, select, textarea {
    transition: all 0.2s ease-in-out;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: rgba(147, 51, 234, 0.5) !important;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.15) !important;
}

/* Glow Elements */
.glow-on-hover {
    position: relative;
    overflow: hidden;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.08),
        transparent
    );
    transition: 0.5s;
}

.glow-on-hover:hover::after {
    left: 100%;
}

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

.animate-fade-in {
    animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Calendar Grid Customizations */
.calendar-time-slot {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.calendar-time-slot:not(.bg-purple-900\/40):hover {
    background: rgba(147, 51, 234, 0.1) !important;
    border-color: rgba(147, 51, 234, 0.3) !important;
}

/* Pulse-Once Alert Animation */
@keyframes pulseOnce {
    0% { transform: scale(1); }
    50% { transform: scale(1.01); }
    100% { transform: scale(1); }
}
.animate-pulse-once {
    animation: pulseOnce 0.5s ease-in-out 1;
}

/* Horizontal Bounce Animation for Mobile Scroll Indicator */
@keyframes bounceHorizontal {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(4px); }
}
.animate-bounce-horizontal {
    animation: bounceHorizontal 1s ease-in-out infinite;
}


/* Light Mode Premium Overrides */
html.light {
    background-color: #f8fafc !important;
    color: #334155 !important;
}

html.light body {
    background: radial-gradient(circle at 80% 10%, rgba(147, 51, 234, 0.03), transparent 45%),
                radial-gradient(circle at 10% 90%, rgba(59, 130, 246, 0.02), transparent 40%),
                #f8fafc;
    color: #334155 !important;
}

html.light ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

html.light ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
}

html.light ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Logo Text Gradient Override in Light Mode */
html.light header span.bg-gradient-to-r {
    background-image: linear-gradient(to right, #0f172a, #475569, #7e22ce) !important;
}

/* Text and Titles */
html.light .text-white,
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6 {
    color: #0f172a !important;
}

/* Exceptions to preserve white text on badges, gradient buttons and active elements */
html.light button.bg-gradient-to-r,
html.light button.bg-gradient-to-r *,
html.light a.bg-gradient-to-r,
html.light a.bg-gradient-to-r *,
html.light button.bg-brand-600,
html.light button.bg-brand-600 *,
html.light a.bg-brand-600,
html.light a.bg-brand-600 *,
html.light .bg-gradient-to-tr *,
html.light .bg-gradient-to-r *,
html.light .step-dot[data-step] div {
    color: #ffffff !important;
}

/* High Contrast Colored Text and Badges in Light Mode */
html.light .text-brand-400 { color: #7c3aed !important; } /* brand-600 */
html.light .text-brand-500 { color: #6d28d9 !important; } /* brand-700 */
html.light .text-indigo-400 { color: #4f46e5 !important; }
html.light .text-emerald-400 { color: #059669 !important; }
html.light .text-rose-400 { color: #dc2626 !important; }
html.light .text-amber-400 { color: #d97706 !important; }

/* Hover Text Colors */
html.light .hover\:text-brand-300:hover { color: #5b21b6 !important; } /* brand-800 */
html.light .hover\:text-indigo-300:hover { color: #3730a3 !important; }
html.light .hover\:text-emerald-300:hover { color: #047857 !important; }
html.light .hover\:text-rose-300:hover { color: #b91c1c !important; }
html.light .hover\:text-amber-300:hover { color: #b45309 !important; }

html.light .text-slate-100 { color: #1e293b !important; }
html.light .text-slate-200 { color: #334155 !important; }
html.light .text-slate-350 { color: #1e293b !important; }
html.light .text-slate-300 { color: #475569 !important; }
html.light .text-slate-400 { color: #64748b !important; }
html.light .text-slate-450 { color: #64748b !important; }
html.light .text-slate-500 { color: #94a3b8 !important; }

/* Backgrounds */
html.light .bg-slate-950 { background-color: #f8fafc !important; }
html.light .bg-slate-900 { background-color: #f1f5f9 !important; }
html.light .bg-slate-900\/80 { background-color: #f1f5f9 !important; }
html.light .bg-slate-900\/60 { background-color: #f1f5f9 !important; }
html.light .bg-slate-900\/50 { background-color: rgba(241, 245, 249, 0.6) !important; }
html.light .bg-slate-900\/40 { background-color: rgba(241, 245, 249, 0.7) !important; }
html.light .bg-slate-900\/30 { background-color: rgba(241, 245, 249, 0.4) !important; }
html.light .bg-slate-900\/20 { background-color: rgba(241, 245, 249, 0.5) !important; }
html.light .bg-slate-850 { background-color: #e2e8f0 !important; }
html.light .bg-slate-800 { background-color: #f1f5f9 !important; }
html.light .bg-slate-950\/40 { background-color: rgba(241, 245, 249, 0.4) !important; }

/* Slate Buttons and Action Elements in Light Mode */
html.light a.bg-slate-800,
html.light button.bg-slate-800,
html.light a.bg-slate-900,
html.light button.bg-slate-900,
html.light a.bg-slate-900\/80,
html.light button.bg-slate-900\/80,
html.light a.bg-slate-900\/60,
html.light button.bg-slate-900\/60 {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}

html.light a.bg-slate-800 *,
html.light button.bg-slate-800 *,
html.light a.bg-slate-900 *,
html.light button.bg-slate-900 *,
html.light a.bg-slate-900\/80 *,
html.light button.bg-slate-900\/80 *,
html.light a.bg-slate-900\/60 *,
html.light button.bg-slate-900\/60 * {
    color: #334155 !important;
}

/* Hover States for Slate Buttons & Links */
html.light a.bg-slate-800:hover,
html.light button.bg-slate-800:hover,
html.light a.bg-slate-900:hover,
html.light button.bg-slate-900:hover,
html.light a.bg-slate-900\/80:hover,
html.light button.bg-slate-900\/80:hover,
html.light a.bg-slate-900\/60:hover,
html.light button.bg-slate-900\/60:hover,
html.light .hover\:bg-slate-800:hover,
html.light .hover\:bg-slate-700:hover,
html.light .hover\:bg-slate-850:hover {
    background-color: #cbd5e1 !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

html.light a.bg-slate-800:hover *,
html.light button.bg-slate-800:hover *,
html.light a.bg-slate-900:hover *,
html.light button.bg-slate-900:hover *,
html.light a.bg-slate-900\/80:hover *,
html.light button.bg-slate-900\/80:hover *,
html.light a.bg-slate-900\/60:hover *,
html.light button.bg-slate-900\/60:hover *,
html.light .hover\:bg-slate-800:hover *,
html.light .hover\:bg-slate-700:hover *,
html.light .hover\:bg-slate-850:hover * {
    color: #0f172a !important;
}

/* Prevent white text on hover in light mode */
html.light .hover\:text-white:hover,
html.light .hover\:text-white:hover * {
    color: #0f172a !important;
}

/* Inputs and Forms */
html.light input,
html.light select,
html.light textarea {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light input::placeholder,
html.light select::placeholder,
html.light textarea::placeholder {
    color: #94a3b8 !important;
}

html.light input:focus,
html.light select:focus,
html.light textarea:focus {
    border-color: rgba(147, 51, 234, 0.6) !important;
}

/* Glassmorphism panels */
html.light .glassmorphism {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(226, 232, 240, 0.85) !important;
    box-shadow: 0 8px 32px 0 rgba(148, 163, 184, 0.1) !important;
}

html.light .glassmorphism-card {
    background: rgba(255, 255, 255, 0.65) !important;
    border-color: rgba(226, 232, 240, 0.7) !important;
    box-shadow: 0 4px 20px 0 rgba(148, 163, 184, 0.08) !important;
}

html.light .glassmorphism-card:hover {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(147, 51, 234, 0.3) !important;
    box-shadow: 0 8px 30px 0 rgba(147, 51, 234, 0.08) !important;
}

/* Borders */
html.light .border-slate-800 { border-color: #e2e8f0 !important; }
html.light .border-slate-800\/60 { border-color: rgba(226, 232, 240, 0.6) !important; }
html.light .border-slate-800\/80 { border-color: rgba(226, 232, 240, 0.8) !important; }
html.light .border-slate-850 { border-color: #e2e8f0 !important; }
html.light .border-slate-900 { border-color: #cbd5e1 !important; }
html.light .border-b-slate-800\/60 { border-color: rgba(226, 232, 240, 0.6) !important; }

/* Navbar Links */
html.light header a:not(.bg-gradient-to-r) {
    color: #475569;
}
html.light header a:not(.bg-gradient-to-r):hover {
    color: #0f172a;
}
html.light header a.text-brand-400 {
    color: #7e22ce !important;
}

/* Agenda / calendar slot customizations */
html.light .calendar-time-slot:not(.bg-purple-900\/40):hover {
    background: rgba(147, 51, 234, 0.08) !important;
    border-color: rgba(147, 51, 234, 0.25) !important;
}

/* Divide slate list border */
html.light .divide-slate-800 > :not([hidden]) ~ :not([hidden]),
html.light .divide-slate-800\/40 > :not([hidden]) ~ :not([hidden]),
html.light .divide-slate-800\/20 > :not([hidden]) ~ :not([hidden]) {
    border-color: #e2e8f0 !important;
}


