 /* ===== Design Tokens ===== */
:root {
    /* Cores de fundo */
    --bg-base: #f8f9fb;
    --bg-dark: #f0f3f7;
    --bg-card: #ffffff;

    /* Superfícies e borders */
    --surface-1: #ffffff;
    --surface-2: #f5f7fa;
    --surface-3: #eef1f6;
    --border-soft: #e1e4e8;
    --border-mid: #d1d5db;
    --border-accent: #3b82f6;

    /* Cores de acentuação */
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-green: #10b981;
    --accent-blue: #3b82f6;

    /* Tipografia */
    --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu", "Cantarell", sans-serif;
    --font-family-title: "Segoe UI", "Roboto", sans-serif;
    --font-size-body: 15px;
    --font-size-sm: 13px;
    --line-height-base: 1.55;
    --line-height-tight: 1.4;

    /* Sombras */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    /* Bordas */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-smooth: 0.25s ease;
}

/* ===== Base & Typography ===== */
html,
body {
    font-family: var(--font-family-base) !important;
    font-size: var(--font-size-body);
    line-height: var(--line-height-base);
    color: #1f2937;
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: linear-gradient(135deg, #f8f9fb 0%, #f0f3f7 100%);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-title) !important;
    font-weight: 600;
    letter-spacing: -0.3px;
    line-height: var(--line-height-tight);
    margin-bottom: 0.5rem;
    color: #111827;
}

/* ===== MudBlazor Typography Overrides ===== */
.mud-typography,
.mud-input,
.mud-input-control,
.mud-select,
.mud-button-root,
.mud-table {
    font-family: var(--font-family-base) !important;
}

.mud-input-label {
    color: #6b7280 !important;
    font-weight: 500;
    font-size: var(--font-size-sm);
    margin-bottom: 4px !important;
    display: block !important;
}

/* ===== Cards ===== */
.mud-card,
.mud-paper {
    background: var(--surface-1);    
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.mud-card:hover,
.mud-paper:hover {
    /* transform: translateY(-2px); */
    box-shadow: var(--shadow-md);
    border-color: #3b82f6;
}

/* ===== AppBar ===== */
.mud-appbar { 
    border-bottom: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
}

.mud-appbar .mud-typography {
    font-family: var(--font-family-title) !important;
    font-weight: 600;
    letter-spacing: -0.2px;
    color: #111827;
}

/* ===== Buttons ===== */
.mud-button-root {
    border-radius: var(--radius-md) !important;
    position: relative;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform var(--transition-fast), box-shadow var(--transition-base), border-color var(--transition-base);
}

.mud-button-root:hover {
    transform: translateY(-1px);
}

.mud-button-root:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2) !important;
}

.mud-button-root.mud-button-filled {
    color: #ffffff !important;
    background: linear-gradient(120deg, #3b82f6, #2563eb) !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.mud-button-root.mud-button-filled:hover {
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.4);
}

.mud-button-root.mud-button-outlined {
    border: 1px solid var(--border-soft) !important;
    background: transparent;
    color: #1f2937 !important;
    transition: all var(--transition-base);
}

.mud-button-root.mud-button-outlined:hover {
    border-color: #3b82f6 !important;
    background: #eff6ff;
    color: #1e40af !important;
}

/* ===== Inputs & Select ===== */
.mud-input-control,
.mud-select {
    background: var(--surface-1);
    border-radius: var(--radius-md); 
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

.mud-input-control:hover,
.mud-select:hover {
    background: var(--surface-2);
    border-color: #d1d5db;
}

.mud-input-control:focus-within,
.mud-select:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.mud-input-control input,
.mud-input-control textarea {
    font-family: var(--font-family-base) !important;
    color: #1f2937;
}

.mud-input-control input::placeholder,
.mud-input-control textarea::placeholder {
    color: #9ca3af;
}

/* ===== Tables ===== */
.mud-table-container {
    border-radius: var(--radius-lg);
   /* border: 1px solid var(--border-soft);*/
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.mud-table thead tr {
    background: #f9fafb;
    border-bottom: 1px solid var(--border-soft);
}

.mud-table thead th {
    color: #374151;
    font-weight: 600;
    font-size: var(--font-size-sm);
    letter-spacing: 0.1px;
}

.mud-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background var(--transition-fast);
}

.mud-table tbody tr:hover {
    background: #f9fafb;
}

.mud-table tbody td {
    color: #1f2937;
    font-size: var(--font-size-body);
}

/* ===== Chips ===== */
.mud-chip {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    color: #1f2937;
    font-weight: 500;
    font-size: var(--font-size-sm);
}

.mud-chip:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* ===== Utility Classes ===== */
.theme-toggle {
    border-radius: 999px;
    background: var(--surface-2);
   /* border: 1px solid var(--border-soft); */
    padding: 6px 12px;
    font-weight: 500;
    color: #1f2937;
    transition: all var(--transition-base);
}

.theme-toggle:hover {
    background: var(--surface-3);
    border-color: var(--border-mid);
}

.h-title {
    position: relative;
    padding-left: 14px;
    font-family: var(--font-family-title) !important;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #111827;
}

.h-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    height: 80%;
    width: 4px;
    border-radius: 999px;
    background: linear-gradient(180deg, #3b82f6, #8b5cf6);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.4);
}

.icon-pulse {
    transition: transform var(--transition-base), filter var(--transition-base);
}

.icon-pulse:hover {
    transform: translateY(-1px) scale(1.03);
    filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.5));
}

/* ===== Divider ===== */
.hr {
    border: 0;
    border-top: 1px solid #cbd5e1;
    opacity: 1;
    margin: 12px 0;
}
.mud-card-content.mud-card-content-padding {
    padding: 10px;
}
/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
    :root {
        --font-size-body: 14px;
    }

    .mud-card,
    .mud-paper {
        box-shadow: var(--shadow-sm);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-body: 14px;
        --radius-lg: 12px;
    }

    html, body {
        font-size: var(--font-size-body);
        line-height: 1.5;
    }

    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    h4 { font-size: 1.1rem; }

    .mud-card,
    .mud-paper {
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
    }

    .mud-button-root {
        padding: 8px 16px !important;
        font-size: 14px;
    }

    .mud-input-control {
        margin-bottom: 0.5rem;
    }

    .mud-table-container {
        border-radius: var(--radius-md);
    }
.mud-switch {
    display: inline-flex !important;
    align-items: center !important;
    vertical-align: middle;
}

.mud-switch-span {
    width: 58px;
    height: 38px;
    display: inline-flex !important;
}

.mud-switch * {
    transition: none !important;
    transform: none !important;
}
}