/* White-Blue Theme - Professional & Clean */
/* Modern blue accents on clean white background */

html.theme-white-blue,
body.theme-white-blue,
html.theme-white-blue:root,
body.theme-white-blue:root {
    /* === BOOTSTRAP 5 GLOBAL VARIABLES === */
    --bs-body-bg: #F5F7FA !important;           /* Light gray-blue background */
    --bs-body-color: #1A202C !important;        /* Dark text */
    --bs-emphasis-color: #2D3748 !important;    /* Emphasis color */
    --bs-border-color: rgba(226, 232, 240, 1) !important; /* Light border */

    /* === DESIGN PALETTE === */
    --primary-accent: #3B82F6 !important;       /* Modern Blue */
    --secondary-accent: #60A5FA !important;     /* Light Blue */

    /* === TEXT === */
    --text-header: #1A202C !important;          /* Dark headers */
    --text-body: #2D3748 !important;            /* Body text */
    --text-primary: #1A202C !important;         /* Primary text */
    --text-secondary: #4A5568 !important;       /* Secondary text */
    --text-muted: #718096 !important;           /* Muted text */

    /* === HINTERGRUND === */
    --bg-card: #FFFFFF !important;              /* White cards */
    --bg-main: #F5F7FA !important;              /* Light background */
    --bg-gradient: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%) !important;
    --issue-card-bg: #FFFFFF !important;

    /* === STATUS & WARNINGS === */
    --status-info: #3B82F6 !important;          /* Info - Blue */
    --status-ok: #10B981 !important;            /* OK - Green */
    --status-warning: #F59E0B !important;       /* Warning - Amber */
    --status-alarm: #EF4444 !important;         /* Alarm - Red */

    /* === LAYOUT === */
    --sidebar-bg: #FFFFFF !important;
    --border-radius: 12px !important;
    --glow-intensity: 0 4px 12px rgba(59, 130, 246, 0.1) !important;

    /* === CARDS === */
    --card-bg: #FFFFFF !important;
    --card-border: rgba(226, 232, 240, 1) !important;
    --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    --card-shadow-hover: 0 4px 12px rgba(59, 130, 246, 0.15) !important;

    /* === BUTTONS === */
    --button-bg: #3B82F6 !important;
    --button-text: #FFFFFF !important;
    --button-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%) !important;
    --button-hover-gradient: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;

    /* === ACCENTS === */
    --accent-color: #3B82F6 !important;
    --accent-blue: #3B82F6 !important;
    --border-accent: #3B82F6 !important;
    --glow-shadow: 0 0 20px rgba(59, 130, 246, 0.2) !important;
}

/* === GLOBAL STYLES === */
html.theme-white-blue {
    background-color: #F5F7FA !important;
    background: #F5F7FA !important;
}

body.theme-white-blue {
    background-color: #F5F7FA !important;
    background: var(--bg-main) !important;
    color: var(--text-primary) !important;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* === LAYOUT === */
.sidebar-layout {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* === SIDEBAR === */
body.theme-white-blue .sidebar {
    background: var(--sidebar-bg);
    border-right: 2px solid var(--card-border);
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.05);
}

/* === MAIN CONTENT === */
body.theme-white-blue .main-content {
    background: var(--bg-main) !important;
}

body.theme-white-blue > div > main {
    background: var(--bg-main) !important;
}

/* === SIDEBAR NAVIGATION === */
body.theme-white-blue .sidebar .nav-link {
    color: var(--text-secondary);
    transition: all 0.3s ease;
    background: transparent;
    border-radius: 8px;
    margin: 4px 8px;
}

body.theme-white-blue .sidebar .nav-link:hover {
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-color);
    transform: translateX(4px);
}

body.theme-white-blue .sidebar .nav-link.active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(96, 165, 250, 0.1));
    color: var(--accent-color);
    border-left: 3px solid var(--accent-color);
    font-weight: 600;
}

body.theme-white-blue .sidebar .nav-icon {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

body.theme-white-blue .sidebar .nav-link:hover .nav-icon,
body.theme-white-blue .sidebar .nav-link.active .nav-icon {
    color: var(--accent-color);
}

/* === SIDEBAR BRAND === */
body.theme-white-blue .sidebar-brand {
    padding: 1.5rem 1rem;
    border-bottom: 2px solid var(--card-border);
}

body.theme-white-blue .brand-text {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === CARDS === */
body.theme-white-blue .card,
body.theme-white-blue .stat-card,
body.theme-white-blue .dashboard-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
}

body.theme-white-blue .card:hover,
body.theme-white-blue .stat-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

/* === STAT CARDS === */
body.theme-white-blue .stat-card {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

body.theme-white-blue .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

body.theme-white-blue .stat-icon.bg-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

body.theme-white-blue .stat-icon.bg-success {
    background: linear-gradient(135deg, #10B981, #059669);
}

body.theme-white-blue .stat-icon.bg-warning {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

body.theme-white-blue .stat-icon.bg-info {
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
}

/* === BUTTONS === */
body.theme-white-blue .btn-primary {
    background: var(--button-gradient);
    border: none;
    color: var(--button-text);
    transition: all 0.3s ease;
}

body.theme-white-blue .btn-primary:hover {
    background: var(--button-hover-gradient);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* === TABLES === */
body.theme-white-blue .table {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
}

body.theme-white-blue .table thead {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-bottom: 2px solid var(--accent-color);
}

body.theme-white-blue .table thead th {
    color: #FFFFFF;
    font-weight: 600;
    border: none;
}

body.theme-white-blue .table tbody tr {
    border-bottom: 1px solid var(--card-border);
    transition: all 0.2s ease;
}

body.theme-white-blue .table tbody tr:hover {
    background: rgba(59, 130, 246, 0.05);
}

/* === FORMS === */
body.theme-white-blue .form-control,
body.theme-white-blue .form-select {
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    color: var(--text-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
}

body.theme-white-blue .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%233B82F6' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

body.theme-white-blue .form-control:focus,
body.theme-white-blue .form-select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* === BADGES === */
body.theme-white-blue .badge {
    border-radius: 6px;
    padding: 0.35em 0.75em;
    font-weight: 600;
}

body.theme-white-blue .badge.bg-primary {
    background: linear-gradient(135deg, #3B82F6, #2563EB) !important;
}

body.theme-white-blue .badge.bg-success {
    background: linear-gradient(135deg, #10B981, #059669) !important;
}

/* === DASHBOARD PAGE === */
body.theme-white-blue .dashboard-page {
    background: var(--bg-main);
    min-height: 100vh;
}

/* === HEADINGS === */
body.theme-white-blue h1,
body.theme-white-blue h2,
body.theme-white-blue h3,
body.theme-white-blue h4,
body.theme-white-blue h5,
body.theme-white-blue h6 {
    color: var(--text-header);
}

/* === LINKS === */
body.theme-white-blue a {
    color: var(--accent-color);
    transition: color 0.2s ease;
}

body.theme-white-blue a:hover {
    color: #2563EB;
}

/* === SCROLLBAR === */
body.theme-white-blue ::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

body.theme-white-blue ::-webkit-scrollbar-track {
    background: #E5E7EB;
    border-radius: 10px;
}

body.theme-white-blue ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
    border-radius: 10px;
}

body.theme-white-blue ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563EB, #1D4ED8);
}
