﻿/* ============================================================
   Clivia — Estilos Customizados (Tema Minimalista)
   ============================================================ */

/* ── Animações ── */
@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes shake {
    0%,
    100% {
        transform: translateX(0);
    }
    20%,
    60% {
        transform: translateX(-4px);
    }
    40%,
    80% {
        transform: translateX(4px);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-slide-up {
    animation: slide-up 0.4s ease-out both;
}
.animate-fade-in {
    animation: fade-in 0.4s ease-out both;
}
.animate-shake {
    animation: shake 0.4s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
    .animate-slide-up,
    .animate-fade-in,
    .animate-shake {
        animation-duration: 0.01ms !important;
        animation-fill-mode: both !important;
    }
}

.spinner {
    border: 2px solid rgba(99, 102, 241, 0.15);
    border-top-color: #6366f1;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    animation: spin 0.7s linear infinite;
}

.input-focus:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.08);
}

/* ══════════════════════════════════════════════════════════════
   PREMIUM CHECKBOX
   Aplica-se a todos os input[type="checkbox"] exceto toggles (.peer)
   ══════════════════════════════════════════════════════════════ */

input[type="checkbox"]:not(.peer) {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    border: 1.5px solid #d1d5db;
    background-color: #ffffff;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
    transition:
        border-color 0.15s ease,
        background-color 0.15s ease,
        box-shadow 0.15s ease;
}

input[type="checkbox"]:not(.peer):hover {
    border-color: #a5b4fc;
}

input[type="checkbox"]:not(.peer):checked {
    background-color: #6366f1;
    border-color: #6366f1;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M3.5 8.5L6.5 11.5L12.5 5' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

input[type="checkbox"]:not(.peer):focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
    border-color: #818cf8;
}

input[type="checkbox"]:not(.peer):checked:focus {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}

input[type="checkbox"]:not(.peer):disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

input[type="checkbox"]:not(.peer):indeterminate {
    background-color: #6366f1;
    border-color: #6366f1;
    background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M4 8h8' stroke='white' stroke-width='1.5' stroke-linecap='round'/%3e%3c/svg%3e");
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR LAYOUT
   ══════════════════════════════════════════════════════════════ */

:root {
    --sidebar-width: 240px;
    --sidebar-collapsed-width: 68px;
    --topbar-height: 52px;
}

/* ── Sidebar container ── */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid #f3f4f6;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition:
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Desktop: sidebar fixo */
@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

/* Mobile: aberto via JS */
.sidebar.sidebar-open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08);
}

/* ── Sidebar header ── */
.sidebar-header {
    padding: 16px 16px 12px;
    border-bottom: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.sidebar-logo-text {
    min-width: 0;
    overflow: hidden;
    transition:
        opacity 0.2s ease,
        width 0.25s ease;
}

/* ── Sidebar nav ── */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 12px 8px;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}

.sidebar-nav::-webkit-scrollbar {
    width: 4px;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: #e5e7eb;
    border-radius: 4px;
}

/* ── Seções ── */
.sidebar-section {
    margin-bottom: 16px;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section-title {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0 8px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

/* ── Links ── */
.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.15s ease;
    text-decoration: none;
    position: relative;
}

.sidebar-link:hover {
    background: #f9fafb;
    color: #374151;
}

.sidebar-link-active {
    background: #eef2ff;
    color: #4f46e5;
}

.sidebar-link-active:hover {
    background: #e0e7ff;
    color: #4338ca;
}

.sidebar-link-active .sidebar-icon {
    color: #6366f1;
}

/* ── Ícones ── */
.sidebar-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: #9ca3af;
    transition: color 0.15s ease;
}

.sidebar-link:hover .sidebar-icon {
    color: #6b7280;
}

.sidebar-link-active .sidebar-icon {
    color: #6366f1;
}

/* ── Badge ── */
.sidebar-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 600;
    background: #eef2ff;
    color: #6366f1;
    padding: 2px 7px;
    border-radius: 9999px;
    line-height: 1;
    transition: opacity 0.2s ease;
}

.sidebar-link-active .sidebar-badge {
    background: #c7d2fe;
    color: #4338ca;
}

/* ── Link text ── */
.sidebar-link-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition:
        opacity 0.2s ease,
        width 0.25s ease;
}

/* ── Footer ── */
.sidebar-footer {
    flex-shrink: 0;
    border-top: 1px solid #f3f4f6;
    padding: 12px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user-info {
    flex: 1;
    min-width: 0;
    transition:
        opacity 0.2s ease,
        width 0.25s ease;
}

.sidebar-logout {
    flex-shrink: 0;
    color: #d1d5db;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sidebar-logout:hover {
    color: #ef4444;
    background: #fef2f2;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR ACTIONS (Collapse + Dark Mode)
   ══════════════════════════════════════════════════════════════ */

.sidebar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    border-top: 1px solid #f3f4f6;
    flex-shrink: 0;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #9ca3af;
    cursor: pointer;
    transition: all 0.15s ease;
    flex-shrink: 0;
}

.sidebar-action-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.sidebar-action-label {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.2s ease;
}

/* Collapse icon rotation */
.sidebar-collapse-icon {
    transition: transform 0.25s ease;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR COLLAPSED STATE (Desktop only)
   ══════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
    .sidebar.sidebar-collapsed {
        width: var(--sidebar-collapsed-width);
    }

    .sidebar.sidebar-collapsed .sidebar-header {
        padding: 16px 12px 12px;
        display: flex;
        justify-content: center;
    }

    .sidebar.sidebar-collapsed .sidebar-logo-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .sidebar.sidebar-collapsed .sidebar-nav {
        padding: 12px 6px;
    }

    .sidebar.sidebar-collapsed .sidebar-section-title {
        opacity: 0;
        height: 0;
        margin: 0;
        padding: 0;
        overflow: hidden;
    }

    .sidebar.sidebar-collapsed .sidebar-link {
        justify-content: center;
        padding: 10px;
        gap: 0;
    }

    .sidebar.sidebar-collapsed .sidebar-link-text {
        opacity: 0;
        width: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .sidebar.sidebar-collapsed .sidebar-badge {
        opacity: 0;
        width: 0;
        padding: 0;
        overflow: hidden;
    }

    .sidebar.sidebar-collapsed .sidebar-icon {
        width: 20px;
        height: 20px;
    }

    .sidebar.sidebar-collapsed .sidebar-footer {
        padding: 10px 6px;
    }

    .sidebar.sidebar-collapsed .sidebar-user {
        justify-content: center;
        gap: 0;
    }

    .sidebar.sidebar-collapsed .sidebar-user-info {
        opacity: 0;
        width: 0;
        overflow: hidden;
        pointer-events: none;
    }

    .sidebar.sidebar-collapsed .sidebar-logout {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    /* Actions area - collapsed */
    .sidebar.sidebar-collapsed .sidebar-actions {
        flex-direction: column;
        padding: 8px 6px;
        gap: 2px;
    }

    .sidebar.sidebar-collapsed .sidebar-action-label {
        opacity: 0;
        width: 0;
        overflow: hidden;
        pointer-events: none;
        position: absolute;
    }

    /* Collapse button icon rotation */
    .sidebar.sidebar-collapsed .sidebar-collapse-icon {
        transform: rotate(180deg);
    }

    /* Main content adjustment */
    .main-content.main-content-collapsed {
        margin-left: var(--sidebar-collapsed-width);
    }

    /* Tooltip on hover for collapsed items */
    .sidebar.sidebar-collapsed .sidebar-link[title] {
        position: relative;
    }

    .sidebar.sidebar-collapsed .sidebar-link[title]:hover::after {
        content: attr(title);
        position: absolute;
        left: calc(100% + 8px);
        top: 50%;
        transform: translateY(-50%);
        background: #1f2937;
        color: #fff;
        font-size: 12px;
        font-weight: 500;
        padding: 4px 10px;
        border-radius: 6px;
        white-space: nowrap;
        z-index: 50;
        pointer-events: none;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }
}

/* ══════════════════════════════════════════════════════════════
   OVERLAY MOBILE
   ══════════════════════════════════════════════════════════════ */

.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 35;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.sidebar-overlay-visible {
    opacity: 1;
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .sidebar-overlay {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════
   TOPBAR MOBILE
   ══════════════════════════════════════════════════════════════ */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    padding: 0 16px;
    background: #ffffff;
    border-bottom: 1px solid #f3f4f6;
    position: sticky;
    top: 0;
    z-index: 30;
}

@media (min-width: 1024px) {
    .topbar {
        display: none;
    }
}

.topbar-hamburger {
    color: #6b7280;
    padding: 6px;
    border-radius: 8px;
    transition: all 0.15s ease;
    background: none;
    border: none;
    cursor: pointer;
}

.topbar-hamburger:hover {
    background: #f3f4f6;
    color: #374151;
}

/* ══════════════════════════════════════════════════════════════
   MAIN CONTENT
   ══════════════════════════════════════════════════════════════ */

.main-content {
    min-height: 100vh;
    padding: 24px 16px 40px;
    transition: margin-left 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .main-content {
        padding: 32px 24px 48px;
    }
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: var(--sidebar-width);
        padding: 32px 40px 48px;
    }
}

/* Limite de largura do conteúdo dentro do main-content */
.content-wrapper {
    max-width: 1100px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE
   ══════════════════════════════════════════════════════════════ */

/* Transition suave ao trocar temas */
html.theme-transition,
html.theme-transition *,
html.theme-transition *:before,
html.theme-transition *:after {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease !important;
}

/* ── Dark mode: Sidebar ── */
html.dark .sidebar {
    background: #111827;
    border-right-color: #1f2937;
}

html.dark .sidebar-header {
    border-bottom-color: #1f2937;
}

html.dark .sidebar-logo-text span:first-child {
    color: #f9fafb;
}

html.dark .sidebar-logo-text span:last-child {
    color: #6b7280;
}

html.dark .sidebar-section-title {
    color: #6b7280;
}

html.dark .sidebar-link {
    color: #9ca3af;
}

html.dark .sidebar-link:hover {
    background: #1f2937;
    color: #e5e7eb;
}

html.dark .sidebar-link:hover .sidebar-icon {
    color: #d1d5db;
}

html.dark .sidebar-link-active {
    background: rgba(99, 102, 241, 0.12);
    color: #a5b4fc;
}

html.dark .sidebar-link-active:hover {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
}

html.dark .sidebar-link-active .sidebar-icon {
    color: #818cf8;
}

html.dark .sidebar-icon {
    color: #6b7280;
}

html.dark .sidebar-badge {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
}

html.dark .sidebar-link-active .sidebar-badge {
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}

html.dark .sidebar-footer {
    border-top-color: #1f2937;
}

html.dark .sidebar-user-info p:first-child {
    color: #e5e7eb;
}

html.dark .sidebar-user-info p:last-child {
    color: #6b7280;
}

html.dark .sidebar-logout {
    color: #4b5563;
}

html.dark .sidebar-logout:hover {
    color: #f87171;
    background: rgba(239, 68, 68, 0.1);
}

html.dark .sidebar-actions {
    border-top-color: #1f2937;
}

html.dark .sidebar-action-btn {
    color: #6b7280;
}

html.dark .sidebar-action-btn:hover {
    background: #1f2937;
    color: #e5e7eb;
}

html.dark .sidebar-action-label {
    color: #6b7280;
}

html.dark .sidebar-nav::-webkit-scrollbar-thumb {
    background: #374151;
}

html.dark .sidebar-nav {
    scrollbar-color: #374151 transparent;
}

/* Tooltip dark collapsed */
html.dark .sidebar.sidebar-collapsed .sidebar-link[title]:hover::after {
    background: #374151;
    color: #f3f4f6;
}

/* ── Dark mode: Topbar ── */
html.dark .topbar {
    background: #111827;
    border-bottom-color: #1f2937;
}

html.dark .topbar span {
    color: #f9fafb;
}

html.dark .topbar-hamburger {
    color: #9ca3af;
}

html.dark .topbar-hamburger:hover {
    background: #1f2937;
    color: #e5e7eb;
}

/* ── Dark mode: Body e Main ── */
html.dark body {
    background-color: #0f172a !important;
}

html.dark .main-content {
    background-color: #0f172a;
}

/* ── Dark mode: Overlay ── */
html.dark .sidebar-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* ══════════════════════════════════════════════════════════════
   DARK MODE — Global Overrides (Content Area)
   ══════════════════════════════════════════════════════════════
   Override common Tailwind utility classes used in views
   so dark mode works automatically on ALL pages.
   ══════════════════════════════════════════════════════════════ */

/* ── Backgrounds ── */
html.dark .main-content .bg-white {
    background-color: #1e293b !important;
}

html.dark .main-content .bg-gray-50 {
    background-color: #0f172a !important;
}

html.dark .main-content .bg-gray-100 {
    background-color: #1e293b !important;
}

/* ── Borders ── */
html.dark .main-content .border-gray-100 {
    border-color: #334155 !important;
}

html.dark .main-content .border-gray-200 {
    border-color: #334155 !important;
}

html.dark .main-content .border-gray-50 {
    border-color: #1e293b !important;
}

html.dark .main-content .border-dashed {
    border-color: #475569 !important;
}

/* ── Typography ── */
html.dark .main-content .text-gray-900 {
    color: #f1f5f9 !important;
}

html.dark .main-content .text-gray-800 {
    color: #e2e8f0 !important;
}

html.dark .main-content .text-gray-700 {
    color: #cbd5e1 !important;
}

html.dark .main-content .text-gray-600 {
    color: #94a3b8 !important;
}

html.dark .main-content .text-gray-500 {
    color: #94a3b8 !important;
}

html.dark .main-content .text-gray-400 {
    color: #64748b !important;
}

html.dark .main-content .text-gray-300 {
    color: #475569 !important;
}

/* ── Headings ── */
html.dark .main-content h1,
html.dark .main-content h2,
html.dark .main-content h3 {
    color: #f1f5f9;
}

/* ── Placeholders ── */
html.dark .main-content input::placeholder,
html.dark .main-content textarea::placeholder {
    color: #475569 !important;
}

/* ── Inputs & Textareas ── */
html.dark
    .main-content
    input:not([type="checkbox"]):not([type="radio"]):not([type="color"]),
html.dark .main-content textarea,
html.dark .main-content select {
    background-color: #0f172a !important;
    border-color: #334155 !important;
    color: #e2e8f0 !important;
}

html.dark
    .main-content
    input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):focus,
html.dark .main-content textarea:focus,
html.dark .main-content select:focus {
    border-color: #6366f1 !important;
}

/* ── Checkboxes ── */
html.dark input[type="checkbox"]:not(.peer) {
    border-color: #4b5563;
    background-color: #111827;
}

html.dark input[type="checkbox"]:not(.peer):hover {
    border-color: #818cf8;
}

html.dark input[type="checkbox"]:not(.peer):checked {
    background-color: #6366f1;
    border-color: #6366f1;
}

/* ── Tables ── */
html.dark .main-content table {
    color: #e2e8f0;
}

html.dark .main-content thead tr {
    border-bottom-color: #334155;
}

html.dark .main-content tbody tr {
    border-bottom-color: #1e293b;
}

html.dark .main-content th {
    color: #64748b !important;
}

/* ── Alert: Sucesso ── */
html.dark .main-content .bg-emerald-50 {
    background-color: rgba(16, 185, 129, 0.1) !important;
}

html.dark .main-content .border-emerald-100 {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

html.dark .main-content .text-emerald-700 {
    color: #6ee7b7 !important;
}

html.dark .main-content .text-emerald-500 {
    color: #34d399 !important;
}

/* ── Alert: Erro ── */
html.dark .main-content .bg-red-50 {
    background-color: rgba(239, 68, 68, 0.1) !important;
}

html.dark .main-content .border-red-100 {
    border-color: rgba(239, 68, 68, 0.2) !important;
}

html.dark .main-content .text-red-600 {
    color: #fca5a5 !important;
}

html.dark .main-content .text-red-400 {
    color: #f87171 !important;
}

html.dark .main-content .text-red-500 {
    color: #f87171 !important;
}

/* ── Brand badges & tags ── */
html.dark .main-content .bg-brand-50 {
    background-color: rgba(99, 102, 241, 0.12) !important;
}

html.dark .main-content .border-brand-100 {
    border-color: rgba(99, 102, 241, 0.2) !important;
}

html.dark .main-content .text-brand-600 {
    color: #a5b4fc !important;
}

html.dark .main-content .text-brand-500 {
    color: #818cf8 !important;
}

/* ── Stat card icon backgrounds ── */
html.dark .main-content .bg-blue-50 {
    background-color: rgba(59, 130, 246, 0.12) !important;
}

html.dark .main-content .bg-indigo-50 {
    background-color: rgba(99, 102, 241, 0.12) !important;
}

html.dark .main-content .bg-amber-50 {
    background-color: rgba(245, 158, 11, 0.12) !important;
}

html.dark .main-content .bg-pink-50 {
    background-color: rgba(236, 72, 153, 0.12) !important;
}

html.dark .main-content .bg-violet-50 {
    background-color: rgba(139, 92, 246, 0.12) !important;
}

html.dark .main-content .bg-cyan-50 {
    background-color: rgba(6, 182, 212, 0.12) !important;
}

html.dark .main-content .bg-orange-50 {
    background-color: rgba(249, 115, 22, 0.12) !important;
}

/* ── Hover states ── */
html.dark .main-content .hover\:bg-gray-50:hover {
    background-color: #1e293b !important;
}

html.dark .main-content .hover\:shadow-sm:hover {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* ── Shadow adjustments ── */
html.dark .main-content .shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
}

/* ── Permission group card borders ── */
html.dark .main-content .border-blue-100 {
    border-color: rgba(59, 130, 246, 0.2) !important;
}

html.dark .main-content .border-indigo-100 {
    border-color: rgba(99, 102, 241, 0.2) !important;
}

html.dark .main-content .border-pink-100 {
    border-color: rgba(236, 72, 153, 0.2) !important;
}

html.dark .main-content .border-amber-100 {
    border-color: rgba(245, 158, 11, 0.2) !important;
}

html.dark .main-content .border-violet-100 {
    border-color: rgba(139, 92, 246, 0.2) !important;
}

html.dark .main-content .border-cyan-100 {
    border-color: rgba(6, 182, 212, 0.2) !important;
}

html.dark .main-content .border-orange-100 {
    border-color: rgba(249, 115, 22, 0.2) !important;
}

/* ── Spinner dark ── */
html.dark .spinner {
    border-color: rgba(99, 102, 241, 0.1);
    border-top-color: #818cf8;
}

/* ── Input focus glow dark ── */
html.dark .input-focus:focus-within {
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

/* ══════════════════════════════════════════════════════════════
   TABS — Perfil do Paciente
   ══════════════════════════════════════════════════════════════ */

.tab-btn-active {
    background-color: #ffffff;
    color: #4f46e5;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-btn-inactive {
    background-color: transparent;
    color: #6b7280;
}

.tab-btn-inactive:hover {
    background-color: rgba(255, 255, 255, 0.6);
    color: #374151;
}

/* Dark mode */
html.dark .tab-btn-active {
    background-color: #1e293b;
    color: #818cf8;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

html.dark .tab-btn-inactive {
    color: #94a3b8;
}

html.dark .tab-btn-inactive:hover {
    background-color: rgba(30, 41, 59, 0.6);
    color: #cbd5e1;
}
