/* EcoAI Professional Dark Theme - Matching Main Page */
:root {
    --primary-green: #34D399;
    --primary-blue: #60A5FA;
    --dark-bg: #0a0a0a;
    --dark-surface: #111111;
    --dark-surface-light: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --border-color: #27272a;
    --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-mesh: linear-gradient(135deg, rgba(52, 211, 153, 0.1), rgba(96, 165, 250, 0.1));
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg) !important;
    color: var(--text-primary) !important;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Force dark theme on all elements */
*, *::before, *::after {
    background-color: transparent;
}

/* Navigation */
.navbar {
    background: rgba(10, 10, 10, 0.9) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color) !important;
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-green) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.navbar-brand i {
    font-size: 1.5rem;
}

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

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

/* Cards */
.card {
    background: var(--dark-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease;
}

.card:hover {
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

.card-header {
    background: var(--dark-surface-light) !important;
    border-bottom: 1px solid var(--border-color) !important;
    color: var(--text-primary) !important;
    border-radius: 20px 20px 0 0 !important;
}

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

.btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(52, 211, 153, 0.3) !important;
}

.btn-secondary {
    background: transparent !important;
    color: var(--text-primary) !important;
    border: 2px solid var(--border-color) !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    transition: all 0.3s ease !important;
}

.btn-secondary:hover {
    border-color: var(--primary-green) !important;
    color: var(--primary-green) !important;
}

/* Forms */
.form-control {
    background: var(--dark-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
    transition: all 0.3s ease !important;
}

.form-control:focus {
    background: var(--dark-surface) !important;
    border-color: var(--primary-green) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 0 0 0.2rem rgba(52, 211, 153, 0.25) !important;
}

.form-label {
    color: var(--text-primary) !important;
    font-weight: 500;
}

/* Tables */
.table {
    color: var(--text-primary) !important;
    background: var(--dark-surface) !important;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

.table-hover tbody tr:hover {
    background-color: rgba(52, 211, 153, 0.1) !important;
}

/* Alerts */
.alert {
    background: var(--dark-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px !important;
    color: var(--text-primary) !important;
}

.alert-success {
    background: rgba(52, 211, 153, 0.1) !important;
    border-color: var(--primary-green) !important;
    color: var(--primary-green) !important;
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1) !important;
    border-color: #ef4444 !important;
    color: #ef4444 !important;
}

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

/* Metric cards */
.metric-card {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    text-align: center !important;
}

.metric-card h3 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: white !important;
}

/* Eco icon */
.eco-icon {
    color: var(--primary-green) !important;
}

/* Logo styling */
.logo-img {
    height: 24px;
    width: auto;
    margin-right: 0.5rem;
}

.hero-logo-img {
    height: 80px;
    width: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 20px rgba(52, 211, 153, 0.3));
}

.login-logo-img {
    height: 40px;
    width: auto;
}

.dashboard-logo {
    height: 20px !important;
    width: auto;
}

.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1rem;
}

/* Professional dashboard styling */
.professional-card {
    background: var(--dark-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    margin-bottom: 2rem !important;
    transition: all 0.3s ease !important;
}

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

.kpi-card {
    background: var(--gradient-primary) !important;
    color: white !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    text-align: center !important;
    transition: all 0.3s ease !important;
}

.kpi-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: 0 20px 40px rgba(52, 211, 153, 0.3) !important;
}

.kpi-number {
    font-size: 3rem !important;
    font-weight: 800 !important;
    color: white !important;
    margin-bottom: 0.5rem !important;
}

.kpi-label {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
}

/* Status badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.status-badge.success {
    background: rgba(52, 211, 153, 0.1);
    color: var(--primary-green);
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.status-badge.warning {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Chart containers */
.chart-container {
    background: var(--dark-surface) !important;
    border-radius: 20px !important;
    padding: 2rem !important;
    border: 1px solid var(--border-color) !important;
}

/* Login page styling */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-bg);
    position: relative;
}

.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.login-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-mesh);
    animation: rotate 20s linear infinite;
}

.login-card {
    background: var(--dark-surface) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 24px !important;
    padding: 3rem !important;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

/* Custom animations */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Responsive design */
@media (max-width: 768px) {
    .card {
        border-radius: 16px !important;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .login-card {
        padding: 2rem !important;
        margin: 1rem !important;
    }
}