/* CRITICAL THEME FIXES - MAXIMUM SPECIFICITY */

/* Default theme */
html body .page .sidebar .top-row,
html body[data-theme="default"] .page .sidebar .top-row,
html .default .page .sidebar .top-row {
    background-color: #052767 !important;
}

/* Teal-Purple theme */
html body .teal-purple .page .sidebar .top-row,
html body[data-theme="teal-purple"] .page .sidebar .top-row,
html .teal-purple .page .sidebar .top-row {
    background-color: #00897B !important;
}

/* Forest-Plum theme */
html body .forest-plum .page .sidebar .top-row,
html body[data-theme="forest-plum"] .page .sidebar .top-row,
html .forest-plum .page .sidebar .top-row {
    background-color: #2E7D32 !important;
}

/* Navy-Coral theme */
html body .navy-coral .page .sidebar .top-row,
html body[data-theme="navy-coral"] .page .sidebar .top-row,
html .navy-coral .page .sidebar .top-row {
    background-color: #1A237E !important;
}

/* Emerald-Indigo theme */
html body .emerald-indigo .page .sidebar .top-row,
html body[data-theme="emerald-indigo"] .page .sidebar .top-row,
html .emerald-indigo .page .sidebar .top-row {
    background-color: #2E7D62 !important;
}

/* Force sidebar gradient with maximum specificity */
html body .page .sidebar,
html body[data-theme] .page .sidebar,
html[data-theme] body .page .sidebar {
    background-image: linear-gradient(180deg, var(--sidebar-start-color, #052767) 0%, var(--sidebar-end-color, #3a0647) 70%) !important;
}

/* Force sidebar top row color with maximum specificity */
html body .page .sidebar .top-row,
html body[data-theme] .page .sidebar .top-row,
html[data-theme] body .page .sidebar .top-row {
    background-color: var(--sidebar-start-color, #052767) !important;
}

/* Make sure buttons are visible */
.btn-primary {
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}