/* ============================================
   THEME STYLES - Premium SaaS Theme
   ============================================ */

:root {
    /* Default: Dark Theme (Pure & Deep) */
    --bg-primary: #09090b;
    --bg-secondary: #0c0c0e;
    --bg-tertiary: #18181b;
    --bg-card: #141416;
    --bg-card-hover: #1c1c1f;

    --border-primary: #27272a;
    --border-secondary: #3f3f46;

    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #22c55e;
    --accent-secondary: #10b981;
    --accent-light: rgba(34, 197, 94, 0.1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* Light Theme (Clean & Soft) */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    /* Soft Slate */
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;

    --border-primary: #e2e8f0;
    --border-secondary: #cbd5e1;

    --text-primary: #0f172a;
    /* Navy Blue Grayish */
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-primary: #16a34a;
    --accent-secondary: #059669;
    --accent-light: rgba(22, 163, 74, 0.05);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
}

/* Base Styles */
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

/* Default Scrollbar (Dark Mode) */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #18181b;
}

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

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

/* Helper Classes for better visibility */

/* Fundo Principal */
.theme-bg-page {
    background-color: var(--bg-primary);
}

.theme-bg-card {
    background-color: var(--bg-card);
    border-color: var(--border-primary);
    box-shadow: var(--shadow-sm);
}

/* Bordas */
.theme-border {
    border-color: var(--border-primary);
}

/* Texto */
.theme-text-title {
    color: var(--text-primary);
}

.theme-text-body {
    color: var(--text-secondary);
}

.theme-text-small {
    color: var(--text-muted);
}

/* Transitions */
.theme-transition {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom adjustments for UI elements - only on html root level */
html[data-theme="light"] input:not([data-theme="dark"] *),
html[data-theme="light"] select:not([data-theme="dark"] *),
html[data-theme="light"] textarea:not([data-theme="dark"] *) {
    background-color: #ffffff !important;
    border-color: #e2e8f0 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .hover-card:hover {
    background-color: #f8fafc;
    box-shadow: var(--shadow-md);
}

/* Force light mode backgrounds for common containers */
html.light body {
    background-color: #f1f5f9 !important;
}

/* Scrollbar Light Mode */
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #f1f5f9;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}