/* ============================================
   DYNAMIC THEME CSS - Generated from Database
   Primary: #1e293b   Secondary: #334155   Theme: slate_professional   Text Color: #ffffff (auto-detected)
   Dark Theme: Yes   ============================================ */

/* CSS Variables for Theme Colors */
:root {
    --theme-primary: #1e293b;
    --theme-secondary: #334155;
    --theme-primary-light: #374254;
    --theme-primary-dark: #040f21;
    --theme-text-color: #ffffff;
}

/* Body Background - Login Pages */
body {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* Smart Text Colors for Headers */
.login-header,
.login-header *,
.header,
.header *,
.header h1,
.header h2,
.header p,
.college-name,
.college-name h2,
.system-title,
.system-subtitle,
.portal-section,
.portal-section h1,
.portal-section p {
    color: #ffffff !important;
}

/* Login Header Icons */
.portal-section .role-icon {
    background: rgba(255,255,255,0.2) !important;
    color: #ffffff !important;
}

/* Landing Page Icons - Override inline colors */
.login-icon.hod {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

.login-icon.faculty {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

.login-icon.admin {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* Login Pages - Header Gradient */
.login-header,
.header,
body .container .header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* Admin Sidebar */
.sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
}

.sidebar-header {
    background: linear-gradient(135deg, #040f21 0%, #334155 100%) !important;
}

/* Sidebar Text Colors - Smart Detection */
.sidebar,
.sidebar *,
.sidebar-user,
.sidebar-user .user-name,
.sidebar-user .user-role,
.sidebar-header,
.sidebar-header .logo,
.sidebar-header .logo span,
.nav-section,
.nav-link,
.nav-link span,
.logout-btn,
.logout-btn span {
    color: #ffffff !important;
}

/* Sidebar Icons */
.sidebar .nav-link i,
.sidebar-header i,
.logout-btn i {
    color: #ffffff !important;
    opacity: 0.9;
}

/* Active Navigation Items */
.nav-link.active,
.sidebar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border-left: 4px solid #4c5a6e !important;
}

.nav-link:hover,
.sidebar-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Primary Buttons */
.btn-primary,
.btn-save,
button[type="submit"]:not(.btn-secondary):not(.preview-btn-secondary),
.submit-btn,
.action-btn,
input[type="submit"]:not(.btn-secondary) {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-primary:hover,
.btn-save:hover,
button[type="submit"]:hover:not(.btn-secondary),
.submit-btn:hover {
    background: linear-gradient(135deg, #374254 0%, #4c5a6e 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 41, 59, 0.4) !important;
}

/* Secondary Buttons */
.btn-secondary {
    background: white !important;
    color: #1e293b !important;
    border: 2px solid #1e293b !important;
}

.btn-secondary:hover {
    background: #1e293b !important;
    color: white !important;
}

/* Page Headers */
.page-header,
.dashboard-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: white !important;
}

/* Stat Cards - Icon Background */
.stat-icon {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* Links */
a:not(.btn):not(.nav-link) {
    color: #1e293b !important;
}

a:not(.btn):not(.nav-link):hover {
    color: #040f21 !important;
}

/* Badges and Tags */
.badge-primary,
.tag-primary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: white !important;
}

/* Progress Bars */
.progress-bar {
    background: linear-gradient(90deg, #1e293b 0%, #334155 100%) !important;
}

/* Focus States */
input:focus,
select:focus,
textarea:focus {
    border-color: #1e293b !important;
    box-shadow: 0 0 0 3px rgba(30, 41, 59, 0.1) !important;
}

/* Tabs */
.tab-active {
    background: #1e293b !important;
    color: white !important;
}

/* Cards - Header Accent */
.card-header-accent {
    border-top: 3px solid #1e293b !important;
}

/* Icons - Primary Color */
.icon-primary {
    color: #1e293b !important;
}

/* Top Bar */
.top-bar {
    border-bottom: 2px solid #1e293b !important;
}

/* Login Buttons Specific */
#emailBtn,
#verifyBtn,
#resendBtn,
.btn.btn-primary {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
}

/* HOD Dashboard */
.hod-sidebar,
.faculty-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #334155 100%) !important;
}

/* Dashboard Cards */
.stat-card:hover {
    border-top: 3px solid #1e293b !important;
}

/* Action Buttons in Tables */
.action-button-primary,
.btn-action {
    background: #1e293b !important;
    color: white !important;
}

.action-button-primary:hover {
    background: #040f21 !important;
}

/* Notification Badge */
.badge-dot,
.notification-badge {
    background: #334155 !important;
}

/* Loading Spinner */
.spinner,
.loader {
    border-top-color: #1e293b !important;
}

/* Charts and Graphs Accent */
.chart-primary {
    color: #1e293b !important;
    fill: #1e293b !important;
}

/* Modal Headers */
.modal-header {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%) !important;
    color: white !important;
}

/* Checkbox and Radio - Checked State */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
    background-color: #1e293b !important;
    border-color: #1e293b !important;
}

/* Dropdown Active Items */
.dropdown-item:active,
.dropdown-item.active {
    background: #1e293b !important;
    color: white !important;
}

/* Pagination */
.pagination .active {
    background: #1e293b !important;
    border-color: #1e293b !important;
}

/* Alerts - Info */
.alert-info {
    background: #374254 !important;
    border-left: 4px solid #1e293b !important;
}

/* Footer - Smart Colors */
.footer,
.footer p,
.footer a,
.login-footer,
.login-footer p,
.login-footer a {
    color: #ffffff !important;
}

.footer a:hover,
.login-footer a:hover {
    opacity: 0.8;
}

/* ============================================
   END DYNAMIC THEME CSS
   ============================================ */

/* ============================================
   GLOBAL: Standard Alert Styling - Red Background, White Text
   ============================================ */

.alert,
.alert-warning,
.alert-info,
.alert-danger,
.alert-error,
.notification-box,
.warning-box {
    background: #dc2626 !important; /* Red background */
    color: #ffffff !important; /* White text */
    border-color: #b91c1c !important;
}

.alert *,
.alert-warning *,
.alert-info *,
.alert-danger *,
.alert-error *,
.notification-box *,
.warning-box * {
    color: #ffffff !important; /* All text inside alerts white */
}

.alert i,
.alert-warning i,
.alert .fa,
.alert-warning .fa {
    color: #ffffff !important; /* Alert icons white */
}

/* ============================================
   FIX: Page Headers White Text on Dark Backgrounds
   ============================================ */


/* Page Header - Main Title */
.page-header h1,
.page-header h2,
.dashboard-header h1,
.dashboard-header h2 {
    color: #ffffff !important;
}

/* Page Header - Subtitle/Description */
.page-header p,
.page-header .page-subtitle,
.dashboard-header p {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Page Header Icons */
.page-header i,
.page-header .fa,
.dashboard-header i {
    color: #ffffff !important;
}

/* Filter Section Labels and Text */
.filter-section,
.filter-section label,
.filter-section h3,
.filter-section h4,
.date-filter label,
.search-filter label {
    color: #ffffff !important;
}

/* Filter Labels in Cards - Make them dark since cards are white */
.card label,
.card .form-group label {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

/* Filter Section - All Labels Outside Cards */
.page-header + .card label,
.stats-compact + .card label,
form > .form-group label {
    color: #1f2937 !important;
}

/* Section Titles Above Tables */
.section-title,
.table-section-title {
    color: #ffffff !important;
}

