/* Global Styles for Insite AI Admin */

:root {
    /* Insite AI primary gradient colors (petals) */
    --insite-petal-1: #2fe3ff;
    --insite-petal-2: #4a74ff;
    --insite-petal-3: #7d3bff;

    /* Backward-compatible names (used by SiteAssistMark SVG/TSX) */
    --sa-petal-1: var(--insite-petal-1);
    --sa-petal-2: var(--insite-petal-2);
    --sa-petal-3: var(--insite-petal-3);

    /* App theme colors */
    --primary-color: var(--insite-petal-2);
    --secondary-color: var(--insite-petal-3);
    --success-color: #4caf50;
    --info-color: var(--insite-petal-1);
    --warning-color: #ff9800;
    --error-color: #f44336;
    --dark-color: #212121;
    --light-color: #f5f5f5;

    /* Berry-like shadows (subtle, soft) */
    --sa-shadow-1: 0 2px 10px rgba(16, 24, 40, 0.08);
    --sa-shadow-2: 0 8px 24px rgba(16, 24, 40, 0.14);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    height: 100%;
    /* Don't hardcode background-color: let MudBlazor theme control it */
    background-color: var(--mud-palette-background);
}

/* MudBlazor sets --mud-palette-background for both light and dark */

/* Utility Classes */
.gap-2 {
    gap: 8px;
}

.gap-4 {
    gap: 16px;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* Elevation tuning (Berry-like) */
.mud-elevation-1 {
    box-shadow: var(--sa-shadow-1) !important;
}

.mud-elevation-4 {
    box-shadow: var(--sa-shadow-2) !important;
}

body.mud-theme-dark .mud-elevation-1 {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

body.mud-theme-dark .mud-elevation-4 {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45) !important;
}

/* Card Hover Effects (subtle) */
.mud-card:hover {
    transition: box-shadow 0.18s ease-in-out;
    box-shadow: var(--sa-shadow-2) !important;
}

/* Button Enhancements */
.mud-button-root {
    transition: all 0.2s ease-in-out;
}

.mud-button-root:hover {
    transform: scale(1.02);
}

/* Table Improvements */
.mud-table-cell {
    vertical-align: middle !important;
}

.mud-table-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

body.mud-theme-dark .mud-table-row:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

.mud-tabs-tabbar {
    margin-bottom: 5px;
}
/* ── Suggestions nav active state ────────────────────────────────────────── */
/* Wrapper div approach: guaranteed to work regardless of MudNavLink internals */
.sa-suggestions-active .mud-nav-link {
    background-color: rgba(74, 116, 255, 0.12) !important;
}
.sa-suggestions-active .mud-nav-link .mud-nav-link-text,
.sa-suggestions-active .mud-nav-link .mud-icon-root {
    color: var(--mud-palette-primary) !important;
    font-weight: 600;
}

/* Pre-production readability polish: make table headers clearly distinct from data rows. */
.mud-table thead .mud-table-cell,
.mud-table-head .mud-table-cell,
.mud-table-root thead th {
    font-weight: 700 !important;
    background: rgba(74, 116, 255, 0.06) !important;
    border-bottom: 2px solid var(--mud-palette-lines-default) !important;
}

body.mud-theme-dark .mud-table thead .mud-table-cell,
body.mud-theme-dark .mud-table-head .mud-table-cell,
body.mud-theme-dark .mud-table-root thead th {
    background: rgba(143, 179, 255, 0.10) !important;
}
.mud-typography .mud-icon-root {
    vertical-align: middle;
    margin-bottom: 2px;
}