:root {
    /* Brand Colors */
    --primary: #FF5F00;
    /* Vibrant Orange from Logo */
    --primary-hover: #ff7f33;
    --primary-glow: rgba(255, 95, 0, 0.4);

    /* Backgrounds */
    --bg-body: #050505;
    /* Deepest Black */
    --bg-card: #111111;
    /* Slightly lighter black for cards */
    --bg-card-hover: #1a1a1a;
    --bg-sidebar: #0a0a0a;
    --bg-input: #09090b;

    /* Text */
    --text-main: #ffffff;
    --text-muted: #888888;
    --text-input: #ffffff;

    /* Borders & Accents */
    --border: #222222;
    --border-hover: #333333;
    --success: #00E676;
    --danger: #FF3D00;

    /* Spacing */
    --radius: 8px;
    --radius-lg: 16px;

    /* Font */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Light Mode - Comprehensive Theme Override */
[data-theme="light"] {
    /* Backgrounds */
    --bg-body: #f5f5f7;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f8f8;
    --bg-sidebar: #ffffff;
    --bg-input: #ffffff;

    /* Text */
    --text-main: #1a1a1a;
    --text-muted: #52525b;
    --text-input: #1a1a1a;
    --text-light: #1a1a1a;

    /* Borders */
    --border: #e5e5e5;
    --border-hover: #d0d0d0;

    /* Card specific */
    --card-bg: #ffffff;
    --card-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);

    /* Modal */
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --modal-bg: #ffffff;

    /* Table */
    --table-row-hover: rgba(0, 0, 0, 0.02);
    --table-header-bg: #f9f9f9;

    /* Toggle/Slider */
    --slider-bg: #d4d4d8;
    --slider-active: #3b82f6;

    /* Form Controls */
    --form-control-bg: #f9fafb;
    --form-control-border: #d1d5db;

    /* Hover States */
    --hover-bg: rgba(0, 0, 0, 0.05);

    /* Webhook/Settings Cards */
    --settings-section-bg: #ffffff;
    --toggle-wrapper-bg: #f4f4f5;
}

/* Light mode specific overrides for complex components */
[data-theme="light"] .card {
    box-shadow: var(--card-shadow);
}

[data-theme="light"] .card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .sidebar {
    border-right-color: #e5e7eb;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-item:hover,
[data-theme="light"] .nav-item.active {
    background: rgba(255, 95, 0, 0.08);
}

[data-theme="light"] .btn-secondary {
    background: #f4f4f5;
    border-color: #d4d4d8;
    color: #1a1a1a;
}

[data-theme="light"] .btn-secondary:hover {
    background: #e4e4e7;
    border-color: #a1a1aa;
}

[data-theme="light"] .btn-outline {
    background: #ffffff;
    border-color: #d4d4d8;
    color: #1a1a1a;
}

[data-theme="light"] .btn-outline:hover {
    background: #f4f4f5;
}

[data-theme="light"] tr:hover td {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="light"] .slider {
    background-color: #d4d4d8;
}

[data-theme="light"] input:checked+.slider {
    background-color: #3b82f6;
}

[data-theme="light"] .stat-value {
    color: #1a1a1a;
}

[data-theme="light"] .modal-content {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .modal-header {
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .platform-option {
    background: #f9fafb;
    border-color: #e5e7eb;
}

[data-theme="light"] .platform-option:hover {
    background: #f0f9ff;
    border-color: var(--primary);
}

[data-theme="light"] .webhook-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .webhook-header {
    background: #f9fafb;
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-input {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1a1a1a;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-input:focus {
    background: #ffffff;
    border-color: var(--primary);
}

[data-theme="light"] .settings-section {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .toggle-wrapper {
    background: #f4f4f5;
    border-color: #e5e7eb;
}

[data-theme="light"] .tab-btn.active {
    color: #1a1a1a;
}

[data-theme="light"] .pixels-table {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .pixels-table th {
    background: #f9fafb;
    border-bottom-color: #e5e7eb;
}

[data-theme="light"] .pixels-table td {
    border-bottom-color: #f0f0f0;
    color: #1a1a1a;
}

/* Light mode notification dropdown */
[data-theme="light"] #notif-dropdown {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

/* Light mode auth container */
[data-theme="light"] .auth-container {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
}

/* Light mode - Tables gerais */
[data-theme="light"] table {
    background: #ffffff;
}

[data-theme="light"] th {
    background: #f3f4f6;
    color: #374151;
}

[data-theme="light"] td {
    color: #1f2937;
}

[data-theme="light"] tr {
    background: #ffffff;
}

[data-theme="light"] tr:nth-child(even) {
    background: #f9fafb;
}

[data-theme="light"] tr:hover td {
    background: #f3f4f6;
}

/* Light mode - Customers table specific */
[data-theme="light"] .customers-table tr {
    background: #ffffff;
}

[data-theme="light"] .customers-table tr:hover {
    background: #f3f4f6;
}

/* Light mode - Client cards e items */
[data-theme="light"] .client-row,
[data-theme="light"] .customer-row {
    background: #ffffff;
    border-color: #e5e7eb;
}

[data-theme="light"] .client-row:hover,
[data-theme="light"] .customer-row:hover {
    background: #f3f4f6;
}

/* Light mode - Search inputs */
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] textarea {
    background: #ffffff;
    border-color: #d1d5db;
    color: #1f2937;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: #9ca3af;
}

/* Light mode - Select dropdowns */
[data-theme="light"] select {
    background: #ffffff;
    border-color: #d1d5db;
    color: #1f2937;
}

/* Light mode - Status badges */
[data-theme="light"] .status-badge,
[data-theme="light"] .badge {
    font-weight: 600;
}

/* Light mode - Copy buttons e action buttons */
[data-theme="light"] .btn-icon,
[data-theme="light"] .copy-btn {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #374151;
}

[data-theme="light"] .btn-icon:hover,
[data-theme="light"] .copy-btn:hover {
    background: #e5e7eb;
}

/* Light mode - Stats cards */
[data-theme="light"] .stat-card,
[data-theme="light"] .commission-card {
    background: #ffffff;
    border-color: #e5e7eb;
}

/* Light mode - Withdraw section */
[data-theme="light"] .withdraw-section {
    background: #ffffff;
    border-color: #e5e7eb;
}

/* Light mode - History section */
[data-theme="light"] .history-section {
    background: #ffffff;
    border-color: #e5e7eb;
}

/* Light mode - Empty state */
[data-theme="light"] .empty-state {
    color: #374151;
}

[data-theme="light"] .empty-state p,
[data-theme="light"] .empty-state h3,
[data-theme="light"] .empty-state h4 {
    color: #374151;
}

/* Light mode - Cards com fundo escuro (affiliates-panel empty state) */
[data-theme="light"] [style*="background: #18181b"],
[data-theme="light"] [style*="background:#18181b"],
[data-theme="light"] [style*="background: #09090b"],
[data-theme="light"] [style*="background:#09090b"],
[data-theme="light"] [style*="background: #0a0a0a"],
[data-theme="light"] [style*="background:#0a0a0a"] {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

/* Light mode - Textos dentro de containers escuros */
[data-theme="light"] [style*="color: #a1a1aa"],
[data-theme="light"] [style*="color:#a1a1aa"],
[data-theme="light"] [style*="color: #71717a"],
[data-theme="light"] [style*="color:#71717a"] {
    color: #6b7280 !important;
}

/* Light mode - Títulos em containers */
[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color:#fff"],
[data-theme="light"] [style*="color: white"],
[data-theme="light"] [style*="color:white"] {
    color: #1f2937 !important;
}

/* Light mode - Filter dropdowns e search bars (Integrações page) */
[data-theme="light"] .form-control,
[data-theme="light"] select.form-control,
[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="search"] {
    background: #ffffff !important;
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] select.form-control:focus,
[data-theme="light"] select:focus,
[data-theme="light"] input[type="text"]:focus,
[data-theme="light"] input[type="search"]:focus {
    border-color: var(--primary) !important;
}

[data-theme="light"] select option {
    background: #ffffff;
    color: #1f2937;
}

/* Light mode - URL badges e code snippets */
[data-theme="light"] .url-badge,
[data-theme="light"] code,
[data-theme="light"] .code-snippet {
    background: #f3f4f6;
    color: #1f2937;
    border-color: #d1d5db;
}

/* Light mode - Copy button no campo de URL */
[data-theme="light"] .url-copy-btn,
[data-theme="light"] button[style*="background: #333"],
[data-theme="light"] button[style*="background:#333"] {
    background: #e5e7eb !important;
    color: #374151 !important;
}

/* Light mode - Help section */
[data-theme="light"] [style*="background: #09090b"],
[data-theme="light"] [style*="background:#09090b"] {
    background: #f9fafb !important;
    border-color: #e5e7eb !important;
}

/* Light mode - Ver logs button */
[data-theme="light"] .btn-outline {
    background: #ffffff;
    border-color: #d1d5db;
    color: #374151;
}

[data-theme="light"] .btn-outline:hover {
    background: #f3f4f6;
}

/* Light mode - Category badges (página de produtos) */
[data-theme="light"] .category-badge,
[data-theme="light"] [style*="background: #27272a"],
[data-theme="light"] [style*="background:#27272a"],
[data-theme="light"] [style*="background: #333"],
[data-theme="light"] [style*="background:#333"] {
    background: #e5e7eb !important;
    color: #374151 !important;
}

/* Light mode - Toggle switches */
[data-theme="light"] .toggle-switch,
[data-theme="light"] .switch {
    background: #d1d5db;
}

[data-theme="light"] .toggle-switch.active,
[data-theme="light"] .switch.active,
[data-theme="light"] input[type="checkbox"]:checked+.toggle-switch {
    background: var(--primary);
}

/* Light mode - Action buttons com fundo escuro */
[data-theme="light"] .action-btn,
[data-theme="light"] [style*="background: #18181b"],
[data-theme="light"] [style*="background:#18181b"] {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border: 1px solid #d1d5db !important;
}

/* Light mode - Inline style overrides for dark backgrounds */
[data-theme="light"] span[style*="background: #27272a"],
[data-theme="light"] span[style*="background:#27272a"],
[data-theme="light"] div[style*="background: #27272a"],
[data-theme="light"] div[style*="background:#27272a"] {
    background: #e5e7eb !important;
    color: #374151 !important;
}

/* Light mode - Product row actions */
[data-theme="light"] .product-actions button,
[data-theme="light"] .actions-cell button {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

/* Light mode - Toggle input styling */
[data-theme="light"] input[type="checkbox"] {
    accent-color: var(--primary);
}

/* Theme Toggle Switch */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
    border-radius: var(--radius);
}

.theme-toggle:hover {
    background: rgba(255, 95, 0, 0.1);
    color: var(--primary);
}

.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: #27272a;
    border-radius: 12px;
    transition: all 0.3s;
}

.toggle-switch::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: all 0.3s;
}

.theme-toggle.light .toggle-switch {
    background: var(--primary);
}

.theme-toggle.light .toggle-switch::before {
    transform: translateX(20px);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 5px var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 20px var(--primary-glow);
    }

    100% {
        box-shadow: 0 0 5px var(--primary-glow);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-success {
    color: var(--success);
}

/* Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    text-decoration: none;
    font-size: 0.95rem;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 95, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 95, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.input-group {
    margin-bottom: 20px;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.input-field,
select.input-field,
.form-input,
select.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-input);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.2s;
    appearance: none;
    /* Remove default arrow for consistent styling */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

/* Ensure options are visible */
option {
    background-color: var(--bg-card);
    color: var(--text-main);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(255, 95, 0, 0.1);
}

/* ===== PROFESSIONAL FORM STYLES ===== */
.form-group {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    background: var(--bg-input, #09090b);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Force all input types to same appearance */
input.form-control,
input[type="text"].form-control,
input[type="email"].form-control,
input[type="tel"].form-control,
input[type="password"].form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 95, 0, 0.15);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23888' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

/* Form Row - grid layout for form fields */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-group {
    margin-bottom: 0;
}

/* Card body form spacing */
.card-body .form-group {
    margin-bottom: 16px;
}

.card-body .form-group:last-child {
    margin-bottom: 0;
}

/* Auth Layout */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 50% -20%, #201000 0%, #050505 60%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 0.6s ease-out;
}

/* Logo Orbiting Glow Animation */
@keyframes orbitGlow {
    0% {
        filter: drop-shadow(0 -5px 4px rgba(255, 95, 0, 0.8));
    }

    25% {
        filter: drop-shadow(5px 0 4px rgba(255, 95, 0, 0.8));
    }

    50% {
        filter: drop-shadow(0 5px 4px rgba(255, 95, 0, 0.8));
    }

    75% {
        filter: drop-shadow(-5px 0 4px rgba(255, 95, 0, 0.8));
    }

    100% {
        filter: drop-shadow(0 -5px 4px rgba(255, 95, 0, 0.8));
    }
}

/* Logo Spinning Ring */
.logo-ring-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-ring-container .ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #ff6b00;
    border-right-color: #ff6b00;
    box-shadow: 0 0 20px rgba(255, 107, 0, 0.3);
    animation: spinRing 2s linear infinite;
    z-index: 1;
}

.logo-ring-container .ring::before {
    content: '';
    position: absolute;
    top: 5px;
    right: 5px;
    bottom: 5px;
    left: 5px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: rgba(255, 107, 0, 0.5);
    border-left-color: rgba(255, 107, 0, 0.5);
    animation: spinRing 3s linear infinite reverse;
}

@keyframes spinRing {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.brand-logo {
    /* Reset margins for container context */
}


display: block;
}

@keyframes borderRotate {
    100% {
        transform: rotate(360deg);
    }
}

.video-logo {
    mix-blend-mode: screen;
    object-fit: contain;
    width: 100%;
    /* Forced Size Override */
    max-width: 400px;
    /* Reduced width too */
    /* Zoom to cut borders - Middle ground */
    transform: scale(1.4);
    margin-bottom: 10px;
    /* Reduced margin to pull text closer but avoiding overlap */

    /* Enhance visibility and ensure blacks are truly black for blend mode */
    filter: brightness(1.1) contrast(1.3);
}

/* Dashboard Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 30px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-header img {
    height: 120px !important;
    max-width: 100%;
    width: auto;
    object-fit: contain;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.2s;
    font-size: 0.95rem;
}

.nav-item:hover,
.nav-item.active {
    background: rgba(255, 95, 0, 0.1);
    color: var(--primary);
}

.nav-item svg {
    width: 20px;
    height: 20px;
}

.main-content {
    flex: 1;
    margin-left: 260px;
    padding: 30px;
    max-width: 1600px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    margin-top: 8px;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Table */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
}

td {
    font-size: 0.95rem;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.badge {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(0, 230, 118, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(255, 171, 0, 0.1);
    color: #FFAB00;
}

/* ============================================
   FLOATING THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    color: var(--text-muted);
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.theme-toggle-floating:hover {
    color: var(--primary);
    background-color: var(--bg-card-hover);
}

.theme-toggle-floating i {
    font-size: 1.2rem;
}

[data-theme="light"] .theme-toggle-floating {
    background: rgba(255, 255, 255, 0.8);
    border-color: #e5e7eb;
    color: #52525b;
}

[data-theme="light"] .theme-toggle-floating:hover {
    background: #ffffff;
    color: var(--primary);
    border-color: var(--primary);
}

/* Light mode badges */
[data-theme="light"] .badge-success {
    background: rgba(0, 200, 100, 0.15);
}

[data-theme="light"] .badge-warning {
    background: rgba(255, 171, 0, 0.15);
}

/* ===== GLOBAL FORM CONTROL SIZING (Same as buttons) ===== */
/* Selects, inputs and buttons should have the same height */
select,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
.form-control {
    height: 35px;
    padding: 0 12px;
    box-sizing: border-box;
    font-size: 0.875rem;
    border-radius: var(--radius);
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-main);
}

select:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
.form-control:focus {
    outline: none;
    border-color: var(--primary);
}

/* Light mode overrides */
[data-theme="light"] select,
[data-theme="light"] input[type="text"],
[data-theme="light"] input[type="search"],
[data-theme="light"] input[type="email"],
[data-theme="light"] input[type="password"],
[data-theme="light"] input[type="number"],
[data-theme="light"] .form-control {
    background: #ffffff;
    border-color: #d1d5db;
    color: #1f2937;
}