:root {
    --primary: #2c7a51;
    --primary-dark: #1e5c3c;
    --text: #333;
    --bg-light: #f4f9f6;
    --glass: rgba(255, 255, 255, 0.75);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
html { scroll-behavior: smooth; }
body { background: #e9efec; color: var(--text); }

/* Header Glassmorphism */
#header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    background: var(--glass);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.nav-container {
    max-width: 1200px; margin: 0 auto; padding: 15px 20px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary-dark); }
.logo-icon { font-size: 28px; }
.logo-text span { font-weight: 800; font-size: 20px; display: block; line-height: 1; }
.logo-text small { font-size: 11px; color: #555; letter-spacing: 1px; }

nav { display: flex; gap: 20px; align-items: center; }
nav a { text-decoration: none; color: var(--text); font-weight: 500; font-size: 14px; transition: 0.3s; }
nav a:hover { color: var(--primary); }
.btn-login { background: var(--primary); color: #fff!important; padding: 8px 16px; border-radius: 6px; }
.btn-login:hover { background: var(--primary-dark); }

.burger { display: none; font-size: 24px; cursor: pointer; }

/* Sections */
.section { display: none; min-height: 100vh; padding-top: 80px; }
.active-section { display: block; }

/* Hero */
#main {
    background-size: cover; background-position: center; position: relative;
    display: flex; align-items: center; justify-content: center; text-align: center; color: #fff;
}
.hero-overlay {
    background: rgba(0,0,0,0.5); padding: 100px 40px; width: 100%; height: 100vh;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.hero-overlay h1 { font-size: 3.5rem; margin-bottom: 20px; text-shadow: 2px 2px 4px rgba(0,0,0,0.7); }
.hero-overlay p { font-size: 1.2rem; max-width: 600px; margin-bottom: 30px; }
.btn-primary {
    background: var(--primary); color: #fff; padding: 12px 24px; border: none; border-radius: 6px;
    font-size: 16px; cursor: pointer; text-decoration: none; transition: 0.3s;
}
.btn-primary:hover { background: var(--primary-dark); }

/* Content Sections */
.content-section { background: #fff; padding: 80px 20px; }
.container { max-width: 900px; margin: 0 auto; }
.container.wide { max-width: 1200px; }
h2 { color: var(--primary-dark); margin-bottom: 25px; font-size: 2rem; border-bottom: 2px solid var(--primary); display: inline-block; padding-bottom: 5px; }
h3 { margin-top: 20px; margin-bottom: 10px; color: var(--primary); }
p { line-height: 1.7; margin-bottom: 15px; }
ul { margin-left: 20px; margin-bottom: 15px; }
li { margin-bottom: 8px; line-height: 1.5; }
.motto { font-size: 1.2rem; font-weight: bold; color: var(--primary-dark); font-style: italic; }
.rules-bg { background: #f4f9f6; }
.dashboard-bg { background: #eef2f0; }

/* Dashboard */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 15px; margin-bottom: 30px; }
.stat-card {
    background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex; align-items: center; gap: 15px;
}
.stat-card i { font-size: 2rem; color: var(--primary); }
.stat-card span { font-size: 1.5rem; font-weight: bold; display: block; }
.stat-card small { color: #777; font-size: 0.9rem; }

.charts-container { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; margin-bottom: 30px; }
.chart-box { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }

.indexing-bar { width: 100%; height: 20px; background: #e0e0e0; border-radius: 10px; overflow: hidden; margin: 15px 0; }
.indexing-progress { height: 100%; background: var(--primary); width: 0%; transition: width 0.5s; }
.process-list { list-style: none; margin: 0; font-family: monospace; font-size: 13px; color: #555; }
.process-list li { margin-bottom: 5px; }

.events-log { background: #fff; padding: 20px; border-radius: 10px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); }
#events-list { list-style: none; max-height: 250px; overflow-y: auto; font-family: monospace; font-size: 13px; }
#events-list li { padding: 8px; border-bottom: 1px solid #eee; }
#events-list li:last-child { border-bottom: none; }

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contacts-grid a { color: var(--primary); }

/* Modals */
.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); }
.modal-content { background: #fff; margin: 10% auto; padding: 30px; width: 90%; max-width: 450px; border-radius: 10px; position: relative; }
.close-btn { position: absolute; top: 10px; right: 20px; font-size: 28px; cursor: pointer; color: #888; }
input { width: 100%; padding: 12px; margin: 10px 0; border: 1px solid #ccc; border-radius: 6px; font-size: 16px; }
.modal-message { margin-top: 15px; padding: 15px; background: #fff3cd; color: #856404; border-radius: 6px; text-align: center; font-weight: bold; }
.modal-message.error { background: #f8d7da; color: #721c24; }

/* Responsive */
@media (max-width: 768px) {
    nav { display: none; flex-direction: column; position: absolute; top: 60px; left: 0; width: 100%; background: var(--glass); padding: 20px; border-top: 1px solid rgba(0,0,0,0.1); }
    nav.open { display: flex; }
    .burger { display: block; }
    .charts-container { grid-template-columns: 1fr; }
    .contacts-grid { grid-template-columns: 1fr; }
    .hero-overlay h1 { font-size: 2rem; }
}
