/*
 * Modern Proceedings Theme - Professional Styling
 */

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
    /* Greys - layered for depth */
    --theme-bg-dark: #e0e3e8;
    --theme-bg: #e8ebf0;
    --theme-bg-light: #f0f2f5;
    --theme-bg-card: #f5f7fa;

    /* Borders - subtle */
    --theme-border: rgba(0, 0, 0, 0.08);
    --theme-border-light: rgba(0, 0, 0, 0.04);

    /* Text */
    --theme-text: #2d3748;
    --theme-text-muted: #5a6778;
    --theme-text-light: #8896a6;

    /* Accent - muted blue */
    --theme-accent: #4a6fa5;
    --theme-accent-hover: #3d5d8a;
    --theme-link: #4a6fa5;
    --theme-link-hover: #3d5d8a;

    /* Track Colors - distinct, accessible palette */
    --track-color-1: #4a6fa5;  /* Blue - Conference */
    --track-color-2: #2a9d8f;  /* Teal - Datasets & Benchmarks */
    --track-color-3: #e76f51;  /* Coral - Workshops */
    --track-color-4: #9b5de5;  /* Purple */
    --track-color-5: #f4a261;  /* Orange */
    --track-color-6: #06d6a0;  /* Green */
}

/* ============================================
   BASE STYLES
   ============================================ */
html,
body.modern-theme {
    background-color: var(--theme-bg) !important;
}

body.modern-theme {
    color: var(--theme-text) !important;
}

body.modern-theme * {
    background-color: transparent !important;
}

body.modern-theme .container-fluid {
    max-width: 1100px;
    padding: 0 2.5rem;
    color: var(--theme-text);
}

body.modern-theme p,
body.modern-theme li,
body.modern-theme span,
body.modern-theme div {
    color: var(--theme-text);
}

body.modern-theme a {
    color: var(--theme-link);
    text-decoration: none;
    transition: color 0.15s ease;
}

body.modern-theme a:hover {
    color: var(--theme-link-hover);
    text-decoration: none;
}

/* ============================================
   NAVBAR - Clean, modern look
   ============================================ */
body.modern-theme .navbar {
    background: linear-gradient(180deg, var(--theme-bg-light) 0%, var(--theme-bg) 100%) !important;
    border: none !important;
    padding: 0.75rem 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.modern-theme .navbar-brand {
    color: var(--theme-text) !important;
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -0.01em;
}

body.modern-theme .navbar-brand:hover {
    color: var(--theme-accent) !important;
    text-decoration: none;
}

body.modern-theme .nav-link {
    color: var(--theme-text-muted) !important;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 0.875rem !important;
    border-radius: 6px;
    transition: all 0.15s ease;
}

body.modern-theme .nav-link:hover {
    color: var(--theme-text) !important;
    background-color: rgba(0, 0, 0, 0.04) !important;
}

body.modern-theme .dropdown-menu {
    background-color: var(--theme-bg-card) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.08);
    padding: 0.5rem;
    margin-top: 0.25rem;
}

body.modern-theme .dropdown-item {
    color: var(--theme-text) !important;
    background-color: transparent !important;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.15s ease;
}

body.modern-theme .dropdown-item:hover {
    background-color: rgba(0, 0, 0, 0.04) !important;
    color: var(--theme-text) !important;
}

body.modern-theme .navbar .form-control {
    background-color: var(--theme-bg-card) !important;
    border: 1px solid var(--theme-border) !important;
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--theme-text) !important;
    padding: 0.4rem 0.875rem;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.modern-theme .navbar .form-control::placeholder {
    color: var(--theme-text-light) !important;
}

body.modern-theme .navbar .form-control:focus {
    background-color: #fff !important;
    border-color: var(--theme-accent) !important;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.12);
    color: var(--theme-text) !important;
    outline: none;
}

body.modern-theme .navbar .btn-outline-success {
    background-color: var(--theme-accent) !important;
    border: none !important;
    color: #ffffff !important;
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.4rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
    transition: all 0.15s ease;
}

body.modern-theme .navbar .btn-outline-success:hover {
    background-color: var(--theme-accent-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

body.modern-theme .navbar-toggler {
    border: none !important;
    padding: 0.5rem;
    border-radius: 6px;
}

body.modern-theme .navbar-toggler:focus {
    box-shadow: none;
    background-color: rgba(0, 0, 0, 0.04) !important;
}

body.modern-theme .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2845, 55, 72, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================
   HOME PAGE - Landing & Proceedings List
   ============================================ */

/* Landing page notice/info box */
body.modern-theme .landing-notice {
    display: block;
    padding: 0.5rem 0.875rem;
    margin-bottom: 0.75rem;
    background-color: var(--theme-bg-card) !important;
    border-radius: 6px;
    border-left: 3px solid var(--theme-accent);
    font-size: 0.8125rem;
    line-height: 1.4;
    color: var(--theme-text-muted);
}

body.modern-theme .landing-notice h1,
body.modern-theme .landing-notice h2,
body.modern-theme .landing-notice h3,
body.modern-theme .landing-notice h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--theme-text);
    margin: 0;
    display: inline;
}

body.modern-theme .landing-notice h1::after,
body.modern-theme .landing-notice h2::after,
body.modern-theme .landing-notice h3::after,
body.modern-theme .landing-notice h4::after {
    content: " — ";
}

body.modern-theme .landing-notice p {
    margin: 0;
    display: inline;
}

body.modern-theme .landing-notice p:empty,
body.modern-theme .landing-notice br {
    display: none;
}

body.modern-theme .landing-notice a {
    color: var(--theme-link);
}

/* Make any buttons in the notice small and subtle */
body.modern-theme .landing-notice .btn,
body.modern-theme .landing-notice a.btn {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    margin: 0.5rem 0 0 0;
}

/* Remove bottom padding/margin from last elements */
body.modern-theme .landing-notice > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.modern-theme .proceedings-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

body.modern-theme .proceedings-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
    background-color: var(--theme-bg-card) !important;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.15s ease;
}

body.modern-theme .proceedings-list li:hover {
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

body.modern-theme .proceedings-list a {
    color: var(--theme-text);
    font-weight: 500;
}

body.modern-theme .proceedings-list a:hover {
    color: var(--theme-link);
}

body.modern-theme .proceedings-list .proceedings-meta {
    color: var(--theme-text-muted);
    font-size: 0.8125rem;
    text-align: right;
    white-space: nowrap;
    margin-left: 1rem;
}

body.modern-theme .proceedings-list .admin {
    color: var(--theme-text-light);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

/* ============================================
   BOOK PAGE (Year)
   ============================================ */
body.modern-theme .book-page {
    padding: 2rem 0 3rem 0;
}

body.modern-theme .book-header {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--theme-bg-card) !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.modern-theme .book-title {
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

body.modern-theme .book-meta {
    color: var(--theme-text-muted);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

body.modern-theme .book-editors {
    color: var(--theme-text-muted);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}

body.modern-theme .book-isbn {
    color: var(--theme-text-light);
    font-size: 0.8125rem;
    font-family: ui-monospace, monospace;
}

body.modern-theme .paper-list-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

body.modern-theme .paper-count {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Track filters */
body.modern-theme .paper-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

body.modern-theme .track-filters {
    display: flex;
    gap: 0.375rem;
    flex-wrap: wrap;
}

body.modern-theme .track-filter {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--theme-text-muted);
    background-color: var(--theme-bg-card);
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

body.modern-theme .track-filter:hover {
    background-color: #fff;
    color: var(--theme-text);
    border-color: rgba(0, 0, 0, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

body.modern-theme .track-filter.active {
    background-color: var(--theme-bg-card);
    color: var(--theme-text);
    border-color: var(--theme-accent);
    border-width: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Track-specific filter button colors when active */
body.modern-theme .track-filter.track-1.active { border-color: var(--track-color-1); }
body.modern-theme .track-filter.track-2.active { border-color: var(--track-color-2); }
body.modern-theme .track-filter.track-3.active { border-color: var(--track-color-3); }
body.modern-theme .track-filter.track-4.active { border-color: var(--track-color-4); }
body.modern-theme .track-filter.track-5.active { border-color: var(--track-color-5); }
body.modern-theme .track-filter.track-6.active { border-color: var(--track-color-6); }

/* Track color indicators on filter buttons (small dot) */
body.modern-theme .track-filter .track-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.375rem;
}
body.modern-theme .track-filter.track-1 .track-dot { background-color: var(--track-color-1); }
body.modern-theme .track-filter.track-2 .track-dot { background-color: var(--track-color-2); }
body.modern-theme .track-filter.track-3 .track-dot { background-color: var(--track-color-3); }
body.modern-theme .track-filter.track-4 .track-dot { background-color: var(--track-color-4); }
body.modern-theme .track-filter.track-5 .track-dot { background-color: var(--track-color-5); }
body.modern-theme .track-filter.track-6 .track-dot { background-color: var(--track-color-6); }

body.modern-theme .track-filter.active .track-dot {
    background-color: #fff !important;
}

/* Legacy suffix_legend support */
body.modern-theme span.suffix_legend {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    color: var(--theme-accent);
    background-color: var(--theme-bg-card);
    border-radius: 12px;
    margin-right: 0.5rem;
}

body.modern-theme span.suffix_legend i {
    font-size: 0.4rem;
    margin-right: 0.375rem;
}

/* ============================================
   PAPER LIST
   ============================================ */
body.modern-theme ul.paper-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

body.modern-theme ul.paper-list li {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    margin-bottom: 0.375rem;
    background-color: var(--theme-bg-card) !important;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.15s ease;
    color: var(--theme-text) !important;
    font-size: 0.9375rem;
    line-height: 1.6;
    border-left: 4px solid var(--theme-accent);
}

body.modern-theme ul.paper-list li .paper-content {
    flex: 1;
    min-width: 0;
}

body.modern-theme .paper-track-badge {
    flex-shrink: 0;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--theme-accent);
    background-color: rgba(74, 111, 165, 0.1);
    border-radius: 12px;
    white-space: nowrap;
}

/* Track-specific paper card styling (left border + badge) */
body.modern-theme ul.paper-list li.track-1 { border-left-color: var(--track-color-1); }
body.modern-theme ul.paper-list li.track-2 { border-left-color: var(--track-color-2); }
body.modern-theme ul.paper-list li.track-3 { border-left-color: var(--track-color-3); }
body.modern-theme ul.paper-list li.track-4 { border-left-color: var(--track-color-4); }
body.modern-theme ul.paper-list li.track-5 { border-left-color: var(--track-color-5); }
body.modern-theme ul.paper-list li.track-6 { border-left-color: var(--track-color-6); }

body.modern-theme ul.paper-list li.track-1 .paper-track-badge {
    color: var(--track-color-1);
    background-color: rgba(74, 111, 165, 0.1);
}
body.modern-theme ul.paper-list li.track-2 .paper-track-badge {
    color: var(--track-color-2);
    background-color: rgba(42, 157, 143, 0.1);
}
body.modern-theme ul.paper-list li.track-3 .paper-track-badge {
    color: var(--track-color-3);
    background-color: rgba(231, 111, 81, 0.1);
}
body.modern-theme ul.paper-list li.track-4 .paper-track-badge {
    color: var(--track-color-4);
    background-color: rgba(155, 93, 229, 0.1);
}
body.modern-theme ul.paper-list li.track-5 .paper-track-badge {
    color: var(--track-color-5);
    background-color: rgba(244, 162, 97, 0.1);
}
body.modern-theme ul.paper-list li.track-6 .paper-track-badge {
    color: var(--track-color-6);
    background-color: rgba(6, 214, 160, 0.1);
}

body.modern-theme ul.paper-list li:hover {
    background-color: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateX(4px);
}

/* Track color indicator - uses colored left border instead of bullet */
body.modern-theme ul.paper-list li::before {
    display: none !important;
}

/* Paper links in list */
body.modern-theme ul.paper-list li a {
    color: var(--theme-link);
    font-weight: 500;
    text-decoration: none;
}

body.modern-theme ul.paper-list li a:hover {
    color: var(--theme-link-hover);
    text-decoration: underline;
}

body.modern-theme ul.paper-list li a[title="paper title"] {
    display: block;
    color: var(--theme-text);
    font-weight: 500;
    font-size: 0.9375rem;
    line-height: 1.5;
    text-decoration: none;
    margin-bottom: 0.25rem;
}

body.modern-theme ul.paper-list li a[title="paper title"]:hover {
    color: var(--theme-link);
}

body.modern-theme ul.paper-list li .paper-authors,
body.modern-theme ul.paper-list li i {
    display: block;
    color: var(--theme-text-muted) !important;
    font-style: normal;
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ============================================
   PAPER DETAIL PAGE
   ============================================ */
body.modern-theme .paper-detail {
    padding: 2rem 0 3rem 0 !important;
}

body.modern-theme .paper-header {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: var(--theme-bg-card) !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.modern-theme .paper-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--theme-text);
    line-height: 1.35;
    margin-bottom: 0.875rem;
}

body.modern-theme .paper-header .paper-authors {
    color: var(--theme-text);
    font-size: 1.0625rem;
    margin-bottom: 0.875rem;
    line-height: 1.5;
}

body.modern-theme .paper-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0;
}

body.modern-theme .paper-meta a {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
}

body.modern-theme .paper-meta a:hover {
    color: var(--theme-link);
}

body.modern-theme .paper-track {
    display: inline-block;
    padding: 0.25rem 0.625rem;
    background-color: var(--theme-bg-light) !important;
    border-radius: 20px;
    font-size: 0.75rem;
    color: var(--theme-text-muted);
}

body.modern-theme .paper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--theme-bg-card) !important;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.modern-theme .paper-notice {
    color: var(--theme-text-muted);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

body.modern-theme .paper-section {
    margin-bottom: 2rem;
}

body.modern-theme .section-label {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--theme-accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.625rem;
}

body.modern-theme .paper-abstract {
    color: var(--theme-text);
    font-size: 1rem;
    line-height: 1.8;
}

body.modern-theme .paper-doi-section {
    padding: 1.25rem 1.5rem;
    background-color: var(--theme-bg-card) !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

body.modern-theme .paper-doi {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 0.875rem;
    color: var(--theme-text-muted);
    background-color: var(--theme-bg-light) !important;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
}

body.modern-theme .paper-doi:hover {
    color: var(--theme-link);
    text-decoration: none;
}

/* Legacy selectors */
body.modern-theme .paper-detail > h4:first-of-type {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--theme-text);
    line-height: 1.35;
    margin-bottom: 0.875rem;
}

body.modern-theme .paper-detail h4 {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--theme-text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

body.modern-theme .paper-detail p i {
    font-style: normal;
}

/* ============================================
   BUTTONS - Soft, modern styling
   ============================================ */
body.modern-theme .btn {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: none !important;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

body.modern-theme .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.modern-theme .btn-primary {
    background-color: var(--theme-accent) !important;
    color: #ffffff !important;
}

body.modern-theme .btn-primary:hover {
    background-color: var(--theme-accent-hover) !important;
    color: #ffffff !important;
}

body.modern-theme .btn-success {
    background-color: var(--theme-text) !important;
    color: #ffffff !important;
}

body.modern-theme .btn-success:hover {
    background-color: var(--theme-text-muted) !important;
    color: #ffffff !important;
}

body.modern-theme .btn-light,
body.modern-theme .btn-secondary,
body.modern-theme .btn-outline-secondary {
    background-color: var(--theme-bg-card) !important;
    color: var(--theme-text) !important;
}

body.modern-theme .btn-light:hover,
body.modern-theme .btn-secondary:hover,
body.modern-theme .btn-outline-secondary:hover {
    background-color: #fff !important;
    color: var(--theme-text) !important;
}

/* ============================================
   SEARCH RESULTS
   ============================================ */
body.modern-theme .search-results {
    padding-top: 2rem !important;
}

body.modern-theme .search-results h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--theme-text);
    margin-bottom: 1rem;
}

body.modern-theme .search-results ul.paper-list li {
    color: var(--theme-text) !important;
}

body.modern-theme .search-results hr {
    background-color: var(--theme-border) !important;
    opacity: 1;
}

/* ============================================
   FOOTER - Clean, integrated look
   ============================================ */
body.modern-theme .footer {
    background: linear-gradient(0deg, var(--theme-bg-dark) 0%, var(--theme-bg) 100%) !important;
    color: var(--theme-text-muted);
    border: none !important;
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
    box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.04);
}

body.modern-theme .footer .btn-spacer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
}

body.modern-theme .footer a {
    color: var(--theme-text-muted);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    transition: all 0.15s ease;
}

body.modern-theme .footer a:hover {
    color: var(--theme-text);
    background-color: rgba(0, 0, 0, 0.04) !important;
    text-decoration: none;
}

/* ============================================
   UTILITIES
   ============================================ */
body.modern-theme hr {
    border: none;
    height: 1px;
    background-color: var(--theme-border);
    margin: 1.5rem 0;
}

body.modern-theme .card {
    background-color: var(--theme-bg-card) !important;
    border: none !important;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    body.modern-theme .container-fluid {
        padding: 0 1.25rem;
    }

    body.modern-theme .paper-title {
        font-size: 1.5rem;
    }

    body.modern-theme .book-title {
        font-size: 1.375rem;
    }

    body.modern-theme .paper-header,
    body.modern-theme .book-header,
    body.modern-theme .paper-actions {
        padding: 1rem;
    }

    body.modern-theme ul.paper-list li,
    body.modern-theme .proceedings-list li {
        padding: 1rem;
    }
}

/* ============================================
   GLOBAL TEXT CONTRAST SAFETY
   Ensures all text is readable across the site
   ============================================ */
body.modern-theme h1,
body.modern-theme h2,
body.modern-theme h3,
body.modern-theme h4,
body.modern-theme h5,
body.modern-theme h6 {
    color: var(--theme-text);
}

body.modern-theme p,
body.modern-theme td,
body.modern-theme th,
body.modern-theme label,
body.modern-theme legend {
    color: var(--theme-text);
}

body.modern-theme small,
body.modern-theme .text-muted,
body.modern-theme .text-secondary {
    color: var(--theme-text-muted) !important;
}

body.modern-theme .modal-content {
    background-color: var(--theme-bg-card) !important;
    color: var(--theme-text);
}

body.modern-theme .modal-header,
body.modern-theme .modal-body,
body.modern-theme .modal-footer {
    color: var(--theme-text);
}

body.modern-theme .modal-title {
    color: var(--theme-text);
}

body.modern-theme .alert {
    color: var(--theme-text);
}

body.modern-theme input,
body.modern-theme textarea,
body.modern-theme select {
    color: var(--theme-text) !important;
    background-color: var(--theme-bg-card) !important;
}

body.modern-theme ::placeholder {
    color: var(--theme-text-light) !important;
}
