.callout-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.card-success {
    border-color: #28a745;
}

.card-success .card-header {
    background-color: #d4edda;
}

.badge.bg-success {
    background-color: #28a745;
}

.lead {
    font-size: 1.25rem;
}

.card img {
    max-width: 150px;
}

.custom-lead {
    font-size: 1.25rem;
    font-weight: bold;
}

/* ---------- THEME COLORS ---------- */

/* Light theme (default) */
body.light-theme {
    /* Slightly richer light gray background */
    background-color: #e5e7eb !important; /* tailwind gray-200 */
    color: #1f2933;
}

body.light-theme .content-wrapper {
    /* Subtle gradient panel background */
    background: linear-gradient(to bottom, #f9fafb, #e5e7eb) !important;
}

body.light-theme .main-header.navbar {
    /* Light gray top header */
    background: #e5e7eb;
    border-bottom: 1px solid #d1d5db;
    color: #111827;
}

body.light-theme .main-header.navbar .nav-link,
body.light-theme .main-header.navbar .navbar-nav .nav-link i {
    color: #111827 !important;
}

body.light-theme .main-sidebar,
body.light-theme .main-sidebar .sidebar {
    /* Light gray sidebar */
    background: #e5e7eb;
    border-right: 1px solid #d1d5db;
}

body.light-theme .nav-sidebar .nav-link,
body.light-theme .nav-sidebar .nav-link i {
    color: #1f2933;
}

body.light-theme .nav-sidebar .nav-link.active {
    background-color: #0ea5e9;
    color: #ffffff;
}

/* Submenu (treeview) items in light theme */
body.light-theme .nav-sidebar .nav-treeview > .nav-item > .nav-link,
body.light-theme .nav-sidebar .nav-treeview > .nav-item > .nav-link i {
    color: #4b5563 !important;   /* darker text */
    font-weight: 500;
}

body.light-theme .nav-sidebar .nav-treeview > .nav-item > .nav-link:hover {
    background-color: rgba(148, 163, 184, 0.25);
    color: #111827 !important;
}

body.light-theme .app-footer {
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    color: #4b5563;
}

/* Dark theme */
body.dark-theme {
    background-color: #0b1120;
    color: #e5e7eb;
}

body.dark-theme .main-header.navbar {
    background: linear-gradient(90deg, #020617, #111827);
    border-bottom: none;
}

body.dark-theme .main-header.navbar .nav-link,
body.dark-theme .main-header.navbar .navbar-nav .nav-link i {
    color: #e5e7eb !important;
}

body.dark-theme .main-sidebar,
body.dark-theme .main-sidebar .sidebar {
    background: #020617;
}

body.dark-theme .nav-sidebar .nav-link,
body.dark-theme .nav-sidebar .nav-link i {
    color: #e5e7ff !important;
}

body.dark-theme .nav-sidebar .nav-link.active {
    background-color: #22c55e;
    color: #0b1120;
}

body.dark-theme .app-footer {
    background: #020617;
    border-top: 1px solid #111827;
    color: #9ca3af;
}

body.dark-theme .content-wrapper {
    background-color: #020617;
}

/* Sidebar spacing / readability */
.nav-sidebar .nav-link {
    padding: 10px 16px;
    font-size: 15px;
    font-weight: 500;
}

.nav-sidebar .nav-link i.nav-icon {
    margin-right: 8px;
}

/* Hover states for better visibility */
body.light-theme .nav-sidebar .nav-link:hover {
    background-color: rgba(59, 130, 246, 0.12);
    color: #0f172a;
}

body.dark-theme .nav-sidebar .nav-link:hover {
    background-color: rgba(55, 65, 81, 0.8);
    color: #ffffff;
}

/* Header link hover */
.main-header.navbar .nav-link:hover {
    opacity: 0.85;
}

/* ---------- RDPMS TEAL THEME (Light) ---------- */
body.light-theme .main-sidebar,
body.light-theme .main-sidebar .sidebar {
    background: #0F3D4D !important;
    border-right: none;
}
body.light-theme .nav-sidebar .nav-link,
body.light-theme .nav-sidebar .nav-link i {
    color: #ffffff !important;
}
body.light-theme .nav-sidebar .nav-link.active,
body.light-theme .nav-sidebar .nav-link:hover.active {
    background: #00A389 !important;
    color: #ffffff !important;
}
body.light-theme .nav-sidebar .nav-link:hover {
    background: rgba(0, 163, 137, 0.25);
    color: #ffffff !important;
}
body.light-theme .nav-sidebar .nav-header {
    color: rgba(255,255,255,0.5) !important;
}
body.light-theme .content-wrapper {
    background: #F8F9FA !important;
}
body.light-theme .main-header.navbar {
    background: #ffffff !important;
    border-bottom: 1px solid #e5e7eb;
    color: #333;
}
body.light-theme .rdpms-teal-btn {
    background: #00A389;
    color: #fff;
    border: none;
}
body.light-theme .rdpms-teal-btn:hover {
    background: #008f76;
    color: #fff;
}
.rdpms-sidebar-brand {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}
.rdpms-sidebar-brand-icon {
    width: 36px;
    height: 36px;
    background: #00A389;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}
.rdpms-sidebar-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
}
.rdpms-sidebar-theme-btn {
    margin: 1rem 1.25rem;
    padding: 10px 16px;
    background: #00A389;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    width: calc(100% - 2.5rem);
}
.rdpms-dashboard-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.rdpms-dashboard-title {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.rdpms-asset-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    padding: 1rem 1.25rem;
}
.rdpms-asset-card-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.rdpms-stat-healthy { color: #28A745; font-weight: 700; }
.rdpms-stat-predictive { color: #FFC107; font-weight: 700; }
.rdpms-stat-failure { color: #DC3545; font-weight: 700; }
.rdpms-donut-legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.rdpms-alert-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    border: 1px solid #e5e7eb;
    padding: 1rem;
    margin-bottom: 0.75rem;
}
.rdpms-alert-card.critical { border-left: 4px solid #DC3545; }
.rdpms-alert-card.warning { border-left: 4px solid #FFC107; }