/* SmartMatch.AI - Stunning Dark Theme */

:root {
    /* Dark Theme Color Palette */
    --primary-color: #667eea;
    --secondary-color: #4facfe;
    --accent-color: #ff6b6b;
    --success-color: #51cf66;
    
    /* Dark Background Colors */
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --bg-tertiary: #21262d;
    --card-bg: #21262d;
    --surface-bg: #30363d;
    
    /* Text Colors */
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    
    /* Border and Effects */
    --border-color: #30363d;
    --border-radius: 12px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-hover: 0 16px 48px rgba(102, 126, 234, 0.3);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.4);
    
    /* Gradients */
    --hero-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #4facfe 100%);
    --card-gradient: linear-gradient(145deg, var(--card-bg) 0%, var(--surface-bg) 100%);
}

/* Force Dark Theme Globally */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    background: var(--bg-primary) !important;
}

body, body.dark-theme {
    margin: 0 !important;
    padding: 0 !important;
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    min-height: 100vh;
}

/* Force all text to be light colored */
body * {
    color: var(--text-primary) !important;
}

/* Override all Bootstrap default backgrounds */
.container, .container-fluid, .row, .col, [class*="col-"] {
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* Override Bootstrap backgrounds */
.bg-light {
    background: var(--bg-secondary) !important;
}

.bg-white {
    background: var(--card-bg) !important;
}

/* Navigation Dark Theme */
.navbar {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.navbar-brand {
    color: var(--text-primary) !important;
    font-weight: 700;
}

.navbar-nav .nav-link {
    color: var(--text-secondary) !important;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

/* Hero Section */
.hero-section {
    background: var(--hero-gradient) !important;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
}

/* Cards Dark Theme */
.card {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: var(--shadow) !important;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

.feature-card {
    background: var(--card-gradient) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: var(--primary-color);
}

/* Buttons Dark Theme */
.btn-primary {
    background: var(--primary-color) !important;
    border: none !important;
    border-radius: var(--border-radius) !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-primary:hover {
    background: var(--secondary-color) !important;
    box-shadow: var(--shadow-glow) !important;
    transform: translateY(-2px) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    background: transparent !important;
    border-radius: var(--border-radius) !important;
    padding: 10px 28px !important;
    font-weight: 600 !important;
}

.btn-outline-primary:hover {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: var(--shadow-glow) !important;
}

/* Text Colors */
.text-muted {
    color: var(--text-muted) !important;
}

.text-secondary {
    color: var(--text-secondary) !important;
}

.text-dark {
    color: var(--text-primary) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary) !important;
}

p, span, div {
    color: var(--text-primary) !important;
}

.lead {
    color: var(--text-secondary) !important;
}

/* Sections */
section {
    background: var(--bg-primary) !important;
}

.py-5 {
    padding: 4rem 0 !important;
}

/* Company Logos */
.company-logo-text {
    padding: 15px;
    margin: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    color: var(--text-primary) !important;
}

.company-logo-text:hover {
    background: var(--surface-bg);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

/* Feature Icons */
.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    background: var(--primary-color);
    color: white;
    box-shadow: var(--shadow-glow);
}

/* Scrollbar Dark Theme */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Dark Theme Animations */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.2); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.4); }
    100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.2); }
}

.glow-animation {
    animation: glow 2s ease-in-out infinite;
}

/* Footer Dark Theme */
footer {
    background: var(--bg-secondary) !important;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary) !important;
}

/* Forms Dark Theme */
.form-control {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: var(--border-radius) !important;
}

.form-control:focus {
    background: var(--surface-bg) !important;
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25) !important;
    color: var(--text-primary) !important;
}

/* Additional Dark Theme Enhancements */
.modal-content {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.dropdown-menu {
    background: var(--card-bg) !important;
    border: 1px solid var(--border-color) !important;
}

.dropdown-item {
    color: var(--text-primary) !important;
}

.dropdown-item:hover {
    background: var(--surface-bg) !important;
    color: var(--primary-color) !important;
}

/* Force Dark Theme on ALL Elements */
section, div, span, p, h1, h2, h3, h4, h5, h6, a, li, ul, ol {
    background: transparent !important;
    color: var(--text-primary) !important;
}

/* Specific Bootstrap Overrides */
.bg-primary {
    background: var(--bg-secondary) !important;
}

.navbar-dark {
    background: rgba(13, 17, 23, 0.95) !important;
}

.navbar-brand, .nav-link {
    color: var(--text-primary) !important;
}

/* Override any white/light backgrounds */
[class*="bg-white"], [class*="bg-light"], .bg-white, .bg-light {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
}

/* Force section backgrounds */
section {
    background: var(--bg-primary) !important;
}

/* Force all text elements */
.text-muted, .text-secondary, .lead, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    color: var(--text-secondary) !important;
}

/* Company logos and cards */
.company-logo-text {
    background: var(--card-bg) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

/* Ensure hero section is visible */
.hero-section {
    background: var(--hero-gradient) !important;
    color: white !important;
}

.hero-section * {
    color: white !important;
}