/* assets/css/style.css */
/* Central Óticas Nicácio CRM - Custom Premium Design System */

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

:root {
    --purple-primary: #70449d;
    --purple-primary-hover: #5d3686;
    --yellow-accent: #ffd200;
    --yellow-accent-hover: #e6bd00;
    --bg-dark: #121212;
    --bg-dark-card: #1d1d1d;
    --border-glass: rgba(255, 255, 255, 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-dark);
    color: #f3f4f6;
}

h1, h2, h3, h4, h5, h6, .font-display {
    font-family: 'Outfit', sans-serif;
}

/* Glassmorphism Styles */
.glass {
    background: rgba(29, 29, 29, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
}

.glass-card {
    background: rgba(29, 29, 29, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(29, 29, 29, 0.75);
    border-color: rgba(112, 68, 157, 0.3);
    box-shadow: 0 12px 40px 0 rgba(112, 68, 157, 0.1);
    transform: translateY(-2px);
}

.glass-input {
    background: rgba(18, 18, 18, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    transition: all 0.2s ease-in-out;
}

.glass-input:focus {
    border-color: var(--purple-primary) !important;
    box-shadow: 0 0 0 2px rgba(112, 68, 157, 0.25) !important;
    outline: none !important;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--purple-primary);
}

/* Timeline Custom Styles */
.timeline-line {
    background: linear-gradient(to bottom, #70449d, #333333);
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.4s ease-out forwards;
}

/* Form inputs styling */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

/* Checkbox style override */
.custom-checkbox:checked {
    background-color: var(--purple-primary);
    border-color: var(--purple-primary);
}

/* Responsive sidebars transitions */
.sidebar-transition {
    transition: width 0.3s ease-in-out;
}

/* Loading Overlay */
.loading-overlay {
    background: rgba(18, 18, 18, 0.85);
    backdrop-filter: blur(8px);
}

/* Status Badges */
.badge-active {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-pending {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-alert {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* --- LIGHT THEME STYLE OVERRIDES --- */
html.light {
    --bg-dark: #f8fafc; /* Slate 50 */
    --bg-dark-card: #ffffff;
    --border-glass: rgba(0, 0, 0, 0.08);
}

html.light body {
    background-color: var(--bg-dark);
    color: #1e293b; /* Slate 800 */
}

html.light .glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: #1e293b;
}

html.light .glass-card {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.05);
    color: #1e293b;
}

html.light .glass-card:hover {
    background: #ffffff;
    border-color: rgba(112, 68, 157, 0.2);
    box-shadow: 0 10px 30px 0 rgba(112, 68, 157, 0.06);
}

html.light .text-white {
    color: #0f172a !important; /* Slate 900 */
}

html.light .text-zinc-400 {
    color: #64748b !important; /* Slate 500 */
}

html.light .text-zinc-300 {
    color: #334155 !important; /* Slate 700 */
}

html.light .text-zinc-500 {
    color: #94a3b8 !important; /* Slate 400 */
}

html.light .bg-brand-dark-bg {
    background-color: #f1f5f9 !important; /* Slate 100 */
}

html.light .bg-brand-dark {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
}

html.light .border-white\/5 {
    border-color: #e2e8f0 !important;
}

html.light .bg-black\/10 {
    background-color: #f1f5f9 !important;
}

html.light .bg-black\/20 {
    background-color: #e2e8f0 !important;
}

html.light .bg-zinc-950\/60 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light .bg-zinc-900\/60 {
    background-color: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html.light .glass-input {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

html.light input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0);
}

html.light select.select-custom option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

html.light select.select-custom {
    color: #0f172a !important;
}

html.light .bg-black\/15 {
    background-color: #f8fafc !important;
}

