/**
 * MakinaEx Centralized Theme Engine Stylesheet v1.1.0
 * High-Precision Dark Mode (Obsidian / Luxury Slate) & Light Mode (Studio Native).
 * Solves all visual noise, metallic gradient washes, and contrast conflicts.
 */

:root,
[data-theme="light"] {
    --theme-mode: light;
    --bg-base: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f8fafc;
    --bg-surface: #f1f5f9;
    --bg-surface-elevated: #ffffff;
    --bg-subtle: #f8fafc;

    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --text-subtle: #94a3b8;

    --border-base: #e2e8f0;
    --border-subtle: #f1f5f9;
    --border-focus: #d97706;

    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-text: #0f172a;
    --input-placeholder: #94a3b8;

    --dropdown-bg: #ffffff;
    --dropdown-border: #e2e8f0;

    --modal-bg: #ffffff;
    --modal-border: #e2e8f0;

    --table-header-bg: #f8fafc;
    --table-row-hover: #f1f5f9;

    --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-card-elevated: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --theme-mode: dark;
    --bg-base: #0b0f19;
    --bg-card: #131b2e;
    --bg-card-hover: #172136;
    --bg-surface: #182234;
    --bg-surface-elevated: #1e293b;
    --bg-subtle: #0d1424;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;

    --border-base: #222f48;
    --border-subtle: #192338;
    --border-focus: #f59e0b;

    --input-bg: #090e1a;
    --input-border: #27354f;
    --input-text: #f8fafc;
    --input-placeholder: #64748b;

    --dropdown-bg: #131b2e;
    --dropdown-border: #27354f;

    --modal-bg: #111827;
    --modal-border: #27354f;

    --table-header-bg: #172136;
    --table-row-hover: #1b263d;

    --shadow-card: 0 4px 20px -2px rgba(0, 0, 0, 0.45);
    --shadow-card-elevated: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 8px 10px -6px rgba(0, 0, 0, 0.6);
}

/* Deep Slate style variant */
[data-theme="dark"][data-theme-style="slate"] {
    --bg-base: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #243247;
    --bg-surface: #243247;
    --bg-surface-elevated: #334155;
    --border-base: #334155;
    --border-subtle: #29384f;
    --input-bg: #0f172a;
    --input-border: #334155;
}

/* Smooth color transition during intentional user toggle */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
    transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        color 0.2s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition-delay: 0s !important;
}

/* =========================================================================
   DARK MODE COMPONENT TRANSFORMATION & ANTI-NOISE LAYER
   Applies only when <html data-theme="dark"> is active.
   Light mode retains 100% of its native Tailwind classes.
   ========================================================================= */

[data-theme="dark"] body {
    background-color: var(--bg-base) !important;
    color: var(--text-primary) !important;
}

/* Dark Scrollbars */
[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0b0f19 !important;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #27354f !important;
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #3b4e72 !important;
}

/* ── 1. NEUTRALIZE LIGHT GRADIENTS & METALLIC SHINES ────────────────────
   Prevents bright white/silver gradient overlays from causing invisible white text */
[data-theme="dark"] [class*="bg-gradient-"][class*="from-white"],
[data-theme="dark"] [class*="bg-gradient-"][class*="via-white"],
[data-theme="dark"] [class*="bg-gradient-"][class*="to-white"],
[data-theme="dark"] [class*="bg-gradient-"][class*="from-slate-50"],
[data-theme="dark"] [class*="bg-gradient-"][class*="from-slate-100"],
[data-theme="dark"] [class*="bg-gradient-"][class*="from-slate-200"],
[data-theme="dark"] [class*="bg-gradient-"][class*="to-slate-50"],
[data-theme="dark"] [class*="bg-gradient-"][class*="to-slate-100"],
[data-theme="dark"] [class*="bg-gradient-"][class*="to-slate-200"],
[data-theme="dark"] [class*="bg-gradient-"][class*="to-amber-50"],
[data-theme="dark"] [class*="bg-gradient-"][class*="to-amber-50/"],
[data-theme="dark"] [class*="bg-gradient-"][class*="from-amber-500/10"],
[data-theme="dark"] [class*="bg-gradient-"][class*="to-amber-500/5"],
[data-theme="dark"] [class*="from-slate-50"][class*="to-amber-50"],
[data-theme="dark"] [class*="from-slate-50"][class*="to-amber-50/"],
[data-theme="dark"] [class*="from-slate-100"][class*="via-slate-200"] {
    background-image: none !important;
    background: var(--bg-card) !important;
    border-color: var(--border-base) !important;
}

/* Neutralize Tailwind gradient CSS variable stops for light origins */
[data-theme="dark"] .from-white,
[data-theme="dark"] .from-slate-50,
[data-theme="dark"] .from-slate-100 {
    --tw-gradient-from: var(--bg-card) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgb(19 27 46 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}

[data-theme="dark"] .via-white {
    --tw-gradient-to: rgb(19 27 46 / 0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--bg-surface) var(--tw-gradient-via-position), var(--tw-gradient-to) !important;
}

[data-theme="dark"] .to-white,
[data-theme="dark"] .to-slate-50,
[data-theme="dark"] .to-slate-100 {
    --tw-gradient-to: var(--bg-card) var(--tw-gradient-to-position) !important;
}

/* ── 2. BASE SURFACES, CARDS & OPACITY-SLASH CLASSES ──────────────────── */
[data-theme="dark"] .bg-white:not(.keep-light):not(.no-dark),
[data-theme="dark"] [class*="bg-white/"]:not(.keep-light):not(.no-dark),
[data-theme="dark"] .bg-slate-50:not(.keep-light):not(.no-dark),
[data-theme="dark"] [class*="bg-slate-50/"]:not(.keep-light):not(.no-dark),
[data-theme="dark"] .bg-gray-50:not(.keep-light):not(.no-dark),
[data-theme="dark"] [class*="bg-gray-50/"]:not(.keep-light):not(.no-dark) {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .bg-slate-100:not(.keep-light):not(.no-dark),
[data-theme="dark"] [class*="bg-slate-100/"]:not(.keep-light):not(.no-dark),
[data-theme="dark"] .bg-gray-100:not(.keep-light):not(.no-dark),
[data-theme="dark"] [class*="bg-gray-100/"]:not(.keep-light):not(.no-dark) {
    background-color: var(--bg-surface) !important;
}

[data-theme="dark"] .bg-slate-200:not(.keep-light):not(.no-dark),
[data-theme="dark"] [class*="bg-slate-200/"]:not(.keep-light):not(.no-dark),
[data-theme="dark"] .bg-gray-200:not(.keep-light):not(.no-dark),
[data-theme="dark"] [class*="bg-gray-200/"]:not(.keep-light):not(.no-dark) {
    background-color: var(--bg-surface-elevated) !important;
}

/* ── 3. SOFT ACCENTS & PILLS (PREVENTS WASHED-OUT PALE GREY) ──────────── */
[data-theme="dark"] .bg-amber-50:not(.keep-light),
[data-theme="dark"] [class*="bg-amber-50/"]:not(.keep-light) {
    background-color: rgba(245, 158, 11, 0.1) !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .bg-emerald-50:not(.keep-light),
[data-theme="dark"] [class*="bg-emerald-50/"]:not(.keep-light) {
    background-color: rgba(16, 185, 129, 0.12) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #a7f3d0 !important;
}

[data-theme="dark"] .bg-blue-50:not(.keep-light),
[data-theme="dark"] [class*="bg-blue-50/"]:not(.keep-light) {
    background-color: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
    color: #bfdbfe !important;
}

[data-theme="dark"] .bg-purple-50:not(.keep-light),
[data-theme="dark"] [class*="bg-purple-50/"]:not(.keep-light) {
    background-color: rgba(168, 85, 247, 0.12) !important;
    border-color: rgba(168, 85, 247, 0.3) !important;
}

[data-theme="dark"] .bg-rose-50:not(.keep-light),
[data-theme="dark"] [class*="bg-rose-50/"]:not(.keep-light) {
    background-color: rgba(244, 63, 94, 0.12) !important;
    border-color: rgba(244, 63, 94, 0.3) !important;
}

[data-theme="dark"] .bg-wood-50:not(.keep-light),
[data-theme="dark"] .bg-wood-100:not(.keep-light),
[data-theme="dark"] [class*="bg-wood-50/"]:not(.keep-light) {
    background-color: rgba(140, 93, 40, 0.15) !important;
    border-color: rgba(140, 93, 40, 0.35) !important;
}

/* ── 4. BADGES & PILL COUNTERS ────────────────────────────────────────── */
[data-theme="dark"] .bg-amber-100 {
    background-color: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.35) !important;
    color: #fcd34d !important;
}

[data-theme="dark"] .bg-emerald-100,
[data-theme="dark"] .bg-green-100 {
    background-color: rgba(16, 185, 129, 0.18) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #6ee7b7 !important;
}

[data-theme="dark"] .bg-blue-100 {
    background-color: rgba(59, 130, 246, 0.18) !important;
    border-color: rgba(59, 130, 246, 0.35) !important;
    color: #93c5fd !important;
}

[data-theme="dark"] .bg-purple-100 {
    background-color: rgba(168, 85, 247, 0.18) !important;
    border-color: rgba(168, 85, 247, 0.35) !important;
    color: #d8b4fe !important;
}

[data-theme="dark"] .bg-rose-100,
[data-theme="dark"] .bg-red-100 {
    background-color: rgba(244, 63, 94, 0.18) !important;
    border-color: rgba(244, 63, 94, 0.35) !important;
    color: #fda4af !important;
}

/* ── 5. BORDERS & DIVIDERS ────────────────────────────────────────────── */
[data-theme="dark"] .border-slate-200:not(.keep-border),
[data-theme="dark"] .border-slate-300:not(.keep-border),
[data-theme="dark"] .border-gray-200:not(.keep-border),
[data-theme="dark"] .border-gray-300:not(.keep-border),
[data-theme="dark"] [class*="border-slate-200/"]:not(.keep-border),
[data-theme="dark"] [class*="border-slate-300/"]:not(.keep-border) {
    border-color: var(--border-base) !important;
}

[data-theme="dark"] .border-slate-100:not(.keep-border),
[data-theme="dark"] .border-gray-100:not(.keep-border),
[data-theme="dark"] [class*="border-slate-100/"]:not(.keep-border) {
    border-color: var(--border-subtle) !important;
}

[data-theme="dark"] .border-emerald-200,
[data-theme="dark"] [class*="border-emerald-200/"] {
    border-color: rgba(16, 185, 129, 0.35) !important;
}

[data-theme="dark"] .border-amber-200,
[data-theme="dark"] [class*="border-amber-200/"] {
    border-color: rgba(245, 158, 11, 0.35) !important;
}

[data-theme="dark"] .border-blue-200,
[data-theme="dark"] [class*="border-blue-200/"] {
    border-color: rgba(59, 130, 246, 0.35) !important;
}

[data-theme="dark"] .divide-slate-200> :not([hidden])~ :not([hidden]),
[data-theme="dark"] .divide-gray-200> :not([hidden])~ :not([hidden]) {
    border-color: var(--border-base) !important;
}

[data-theme="dark"] .divide-slate-100> :not([hidden])~ :not([hidden]),
[data-theme="dark"] .divide-gray-100> :not([hidden])~ :not([hidden]) {
    border-color: var(--border-subtle) !important;
}

/* ── 6. TYPOGRAPHY & HIGH-CONTRAST READABILITY ────────────────────────── */
[data-theme="dark"] .text-slate-950:not(.keep-color):not(.btn-text-fix),
[data-theme="dark"] .text-slate-900:not(.keep-color):not(.btn-text-fix),
[data-theme="dark"] .text-slate-800:not(.keep-color):not(.btn-text-fix),
[data-theme="dark"] .text-gray-950:not(.keep-color):not(.btn-text-fix),
[data-theme="dark"] .text-gray-900:not(.keep-color):not(.btn-text-fix),
[data-theme="dark"] .text-gray-800:not(.keep-color):not(.btn-text-fix),
[data-theme="dark"] .text-wood-950:not(.keep-color):not(.btn-text-fix),
[data-theme="dark"] .text-wood-900:not(.keep-color):not(.btn-text-fix) {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-slate-700:not(.keep-color),
[data-theme="dark"] .text-slate-600:not(.keep-color),
[data-theme="dark"] .text-gray-700:not(.keep-color),
[data-theme="dark"] .text-gray-600:not(.keep-color),
[data-theme="dark"] .text-wood-800:not(.keep-color) {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-slate-500:not(.keep-color),
[data-theme="dark"] .text-gray-500:not(.keep-color),
[data-theme="dark"] .text-wood-700:not(.keep-color) {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .text-slate-400:not(.keep-color) {
    color: #94a3b8 !important;
}

/* Deep text colors transformed into crisp readable dark hues */
[data-theme="dark"] .text-amber-950,
[data-theme="dark"] .text-amber-900,
[data-theme="dark"] .text-amber-800,
[data-theme="dark"] .text-amber-700 {
    color: #fbbf24 !important;
    /* Glowing amber */
}

[data-theme="dark"] .text-emerald-900,
[data-theme="dark"] .text-emerald-800,
[data-theme="dark"] .text-green-800 {
    color: #34d399 !important;
    /* Vivid emerald */
}

[data-theme="dark"] .text-blue-900,
[data-theme="dark"] .text-blue-800 {
    color: #93c5fd !important;
    /* Crisp blue */
}

[data-theme="dark"] .text-rose-900,
[data-theme="dark"] .text-rose-800,
[data-theme="dark"] .text-red-800 {
    color: #fb7185 !important;
}

[data-theme="dark"] .text-purple-900,
[data-theme="dark"] .text-purple-800 {
    color: #d8b4fe !important;
}

/* Ensure vibrant CTA buttons keep readable dark black text */
[data-theme="dark"] .bg-amber-400 .text-slate-950,
[data-theme="dark"] .bg-amber-500 .text-slate-950,
[data-theme="dark"] .bg-amber-300 .text-slate-950,
[data-theme="dark"] .bg-amber-400.text-slate-950,
[data-theme="dark"] .bg-amber-500.text-slate-950,
[data-theme="dark"] .bg-amber-300.text-slate-950,
[data-theme="dark"] .bg-amber-500.text-wood-950,
[data-theme="dark"] .bg-amber-400.text-wood-950,
[data-theme="dark"] .bg-yellow-400.text-slate-950,
[data-theme="dark"] .bg-yellow-500.text-slate-950 {
    color: #020617 !important;
}

/* ── 7. SIDEBAR & PORTAL NAVIGATION ITEMS ─────────────────────────────── */
[data-theme="dark"] a.bg-amber-50,
[data-theme="dark"] a[class*="bg-amber-50"],
[data-theme="dark"] aside a.bg-white,
[data-theme="dark"] aside a[class*="bg-white"],
[data-theme="dark"] nav a.bg-white,
[data-theme="dark"] nav a[class*="bg-white"] {
    background-color: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.4) !important;
    color: #fcd34d !important;
}

[data-theme="dark"] a.bg-amber-50 i,
[data-theme="dark"] a[class*="bg-amber-50"] i,
[data-theme="dark"] aside a.bg-white i,
[data-theme="dark"] nav a.bg-white i {
    color: #fbbf24 !important;
}

[data-theme="dark"] a.bg-amber-50 span,
[data-theme="dark"] a[class*="bg-amber-50"] span,
[data-theme="dark"] aside a.bg-white span,
[data-theme="dark"] nav a.bg-white span {
    color: #fcd34d !important;
}

[data-theme="dark"] a.hover\:bg-slate-50:hover,
[data-theme="dark"] a[class*="hover:bg-slate-50"]:hover,
[data-theme="dark"] aside a:hover:not(.bg-amber-50),
[data-theme="dark"] nav a:hover:not(.bg-amber-50) {
    background-color: var(--bg-surface) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] aside a:hover:not(.bg-amber-50) i,
[data-theme="dark"] nav a:hover:not(.bg-amber-50) i {
    color: #fbbf24 !important;
}

/* ── 8. FORM INPUTS, SELECTS, AND TEXTAREAS ──────────────────────────── */
[data-theme="dark"] input[type="text"]:not(.keep-input),
[data-theme="dark"] input[type="email"]:not(.keep-input),
[data-theme="dark"] input[type="password"]:not(.keep-input),
[data-theme="dark"] input[type="number"]:not(.keep-input),
[data-theme="dark"] input[type="search"]:not(.keep-input),
[data-theme="dark"] input[type="tel"]:not(.keep-input),
[data-theme="dark"] input[type="url"]:not(.keep-input),
[data-theme="dark"] select:not(.keep-input),
[data-theme="dark"] textarea:not(.keep-input) {
    background-color: var(--input-bg) !important;
    border-color: var(--input-border) !important;
    color: var(--input-text) !important;
}

[data-theme="dark"] select:not(.keep-input) option {
    background-color: var(--bg-card) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--input-placeholder) !important;
}

[data-theme="dark"] input:focus:not(.keep-input),
[data-theme="dark"] select:focus:not(.keep-input),
[data-theme="dark"] textarea:focus:not(.keep-input) {
    border-color: var(--border-focus) !important;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2) !important;
}

/* ── 9. TABLES & PIECES SPREADSHEETS (MAKINAEX CUT & WOOD) ───────────── */
[data-theme="dark"] table thead,
[data-theme="dark"] table thead tr {
    background-color: var(--table-header-bg) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] table thead th {
    background-color: var(--table-header-bg) !important;
    color: var(--text-secondary) !important;
    border-color: var(--border-base) !important;
}

[data-theme="dark"] table tbody td {
    border-color: var(--border-base) !important;
}

[data-theme="dark"] table tbody tr:hover {
    background-color: var(--table-row-hover) !important;
}

/* Zebra row striping in Cut & Wood piece tables */
[data-theme="dark"] tr.piece-table-row:nth-child(even) {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] tr.piece-table-row:nth-child(odd) {
    background-color: var(--bg-subtle) !important;
}

[data-theme="dark"] tr.piece-table-row:hover {
    background-color: var(--table-row-hover) !important;
}

/* Edge banding inactive toggle buttons in table */
[data-theme="dark"] .piece-table-row button.bg-slate-100 {
    background-color: var(--bg-surface-elevated) !important;
    border-color: var(--border-base) !important;
    color: var(--text-muted) !important;
}

/* ── 10. PRICING CARDS & FEATURE BARS ─────────────────────────────────── */
[data-theme="dark"] .orders-plan-box,
[data-theme="dark"] .portal-plan-box {
    background: rgba(245, 158, 11, 0.05) !important;
    background-image: none !important;
    border-color: rgba(245, 158, 11, 0.25) !important;
}

[data-theme="dark"] .orders-plan-box h3,
[data-theme="dark"] .portal-plan-box h3 {
    color: #ffffff !important;
}

[data-theme="dark"] .orders-plan-box span.bg-emerald-50,
[data-theme="dark"] .portal-plan-box span.bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
    color: #6ee7b7 !important;
}

[data-theme="dark"] .pricing-card,
[data-theme="dark"] div[class*="from-white"][class*="to-amber-50"] {
    background: var(--bg-card) !important;
    border-color: var(--border-base) !important;
}

[data-theme="dark"] .pricing-price-box,
[data-theme="dark"] div[class*="bg-white/60"] {
    background-color: rgba(245, 158, 11, 0.04) !important;
    border-color: var(--border-base) !important;
}

/* ── 11. MODALS, DRAWERS & BOTTOM SHEETS ──────────────────────────────── */
[data-theme="dark"] .bg-white.rounded-2xl,
[data-theme="dark"] .bg-white.rounded-3xl,
[data-theme="dark"] .bg-white.rounded-xl,
[data-theme="dark"] [role="dialog"],
[data-theme="dark"] .dropdown-menu,
[data-theme="dark"] #piece-info-card,
[data-theme="dark"] .piece-info-popup,
[data-theme="dark"] #piece-inspect-modal,
[data-theme="dark"] #all-sheets-modal,
[data-theme="dark"] #fullscreen-sheets-modal,
[data-theme="dark"] #ai-import-modal,
[data-theme="dark"] #ai-vision-modal {
    background-color: var(--modal-bg) !important;
    border-color: var(--modal-border) !important;
    color: var(--text-primary) !important;
}

[data-theme="dark"] details {
    background-color: var(--bg-card) !important;
    border-color: var(--border-base) !important;
}

[data-theme="dark"] details summary {
    color: var(--text-primary) !important;
}

[data-theme="dark"] details summary:hover {
    color: #fbbf24 !important;
}

[data-theme="dark"] #mobile-menu-drawer {
    background-color: var(--bg-card) !important;
    border-color: var(--border-base) !important;
}

[data-theme="dark"] #portal-bottom-nav,
[data-theme="dark"] #portal-products-sheet {
    background-color: rgba(11, 15, 25, 0.96) !important;
    border-color: var(--border-base) !important;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .portal-bn-item {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .portal-bn-item.text-amber-700 {
    color: #fbbf24 !important;
    background-color: rgba(245, 158, 11, 0.12) !important;
}

/* ── 12. CANVAS PROTECTION ────────────────────────────────────────────── */
.canvas-wrapper canvas,
#canvas-container canvas,
#sheet-canvas,
#canvas,
#canvas-wood {
    background-color: #ffffff !important;
}

/* ── 13. THEME TOGGLE BUTTON COMPONENT ───────────────────────────────── */
.makina-theme-toggle-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    user-select: none;
    outline: none;
}

.makina-theme-toggle-btn:focus-visible {
    ring: 2px;
    ring-color: #f59e0b;
}

.makina-theme-toggle-icon {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
}

.makina-theme-toggle-btn:hover .makina-theme-toggle-icon {
    transform: rotate(15deg) scale(1.1);
}