/* SilentCoderHub Dark Mode Stylesheet */

html[data-theme="dark"] {
    /* Color Palette - Dark Mode Overrides */
    --bg-color: #0F172A; /* Deep Slate Background */
    --card-bg: #1E293B;  /* Slate Card Background */
    --text-primary: #F8FAFC;
    --text-secondary: #E2E8F0;
    --text-muted: #94A3B8;
    
    --border-color: #334155;
    --border-hover: #475569;
    
    --navbar-bg: rgba(15, 23, 42, 0.85);
    
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -1px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(34, 197, 94, 0.15);
    
    --primary-glow: rgba(34, 197, 94, 0.12);
}

/* Adjustments for Specific Elements in Dark Mode */
html[data-theme="dark"] .theme-toggle-btn .fa-sun {
    display: block;
    color: #FBBF24; /* Warm yellow sun icon */
}

html[data-theme="dark"] .theme-toggle-btn .fa-moon {
    display: none;
}

/* Logo image colors inversion for dark background visibility */
html[data-theme="dark"] .navbar-brand-img,
html[data-theme="dark"] .footer-brand-img {
    filter: invert(1) hue-rotate(180deg);
}

html[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0F172A;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: #334155;
    border: 2px solid #0F172A;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Custom styling updates for mock code terminal in dark mode */
html[data-theme="dark"] .mock-ide {
    background-color: #05070c;
    border-color: #1e293b;
}

html[data-theme="dark"] .ide-header {
    background-color: #080b12;
    border-color: #1e293b;
}

html[data-theme="dark"] .ide-tab {
    background-color: #05070c;
    border-color: #1e293b;
}

/* Timeline specific dark mode adjustments */
html[data-theme="dark"] .roadmap-dot {
    background-color: #1E293B;
}

html[data-theme="dark"] .roadmap-node.active .roadmap-content {
    background-color: rgba(34, 197, 94, 0.08);
}

/* Dark mode form field styling adjustments */
html[data-theme="dark"] .form-control-custom {
    color: #F8FAFC;
}

/* Custom illustration grids */
html[data-theme="dark"] .project-header-img {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.5), rgba(15, 23, 42, 0.5));
}

html[data-theme="dark"] .tag-badge {
    background-color: #0F172A;
}

/* Adjusting dynamic verification results cards in dark mode */
html[data-theme="dark"] .certificate-result-card {
    background-color: #1E293B;
}

html[data-theme="dark"] .certificate-qr {
    background-color: #0F172A;
    border-color: #334155;
}

/* Bootstrap Utility Color Overrides for Dark Mode Readability */
html[data-theme="dark"] .text-muted {
    color: var(--text-muted) !important;
}

html[data-theme="dark"] .text-secondary {
    color: var(--text-secondary) !important;
}

html[data-theme="dark"] .text-dark {
    color: var(--text-primary) !important;
}

