:root {
    --primary: #2d5016;
    --primary-light: #4a7c2e;
    --secondary: #8b6914;
    --bg: #f8f9f5;
    --bg-card: #ffffff;
    --text: #2c3e2c;
    --text-light: #5a6b5a;
    --border: #d4ddd4;
    --success: #2d7d2d;
    --warning: #c49000;
    --danger: #c0392b;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.header { background: var(--primary); color: white; padding: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.15); }
.header-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 1.5rem; }
.header h1 { font-size: 1.35rem; font-weight: 600; padding: 1rem 0; }
.header h1 span { font-weight: 300; opacity: 0.85; font-size: 0.9em; }
nav { display: flex; gap: 0; }
nav a { color: rgba(255,255,255,0.85); padding: 1.1rem 1.2rem; font-size: 0.95rem; font-weight: 500; transition: all 0.2s; border-bottom: 3px solid transparent; }
nav a:hover, nav a.active { color: white; background: rgba(255,255,255,0.1); text-decoration: none; border-bottom-color: rgba(255,255,255,0.6); }

/* Hero */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: white; padding: 3rem 1.5rem; text-align: center; }
.hero h2 { font-size: 2rem; margin-bottom: 0.5rem; font-weight: 700; }
.hero p { font-size: 1.1rem; opacity: 0.9; max-width: 650px; margin: 0 auto; }

/* Main */
.main { max-width: 1100px; margin: 2rem auto; padding: 0 1.5rem; }
.card { background: var(--bg-card); border-radius: 8px; padding: 1.5rem 2rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); }
.card h3 { color: var(--primary); margin-bottom: 0.75rem; font-size: 1.15rem; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.info-item { display: flex; gap: 0.5rem; align-items: flex-start; }
.info-item .icon { font-size: 1.3rem; min-width: 1.5rem; text-align: center; }
.info-item strong { display: block; font-size: 0.85rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.03em; }

/* Status badges */
.status { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.85rem; font-weight: 600; }
.status-green { background: #e8f5e9; color: var(--success); }
.status-yellow { background: #fff8e1; color: var(--warning); }
.status-red { background: #fce4ec; color: var(--danger); }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.status-green::before { background: var(--success); }
.status-yellow::before { background: var(--warning); }
.status-red::before { background: var(--danger); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.9rem; }
th { background: var(--bg); color: var(--text-light); font-weight: 600; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.04em; padding: 0.7rem 0.8rem; text-align: left; border-bottom: 2px solid var(--border); }
td { padding: 0.65rem 0.8rem; border-bottom: 1px solid #eee; }
tr:hover td { background: #f5f8f5; }

/* Dashboard */
.dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.dash-card { background: var(--bg-card); border-radius: 8px; padding: 1.25rem; text-align: center; box-shadow: var(--shadow); border: 1px solid var(--border); }
.dash-card .value { font-size: 1.8rem; font-weight: 700; color: var(--primary); }
.dash-card .label { font-size: 0.8rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 0.25rem; }

/* Footer */
.footer { background: #2a2a2a; color: #aaa; padding: 2rem 1.5rem; text-align: center; margin-top: 3rem; font-size: 0.85rem; }
.footer a { color: #ccc; }

/* Loading */
.loading { text-align: center; padding: 2rem; color: var(--text-light); }
.loading::after { content: ""; display: inline-block; width: 20px; height: 20px; border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 0.5rem; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Responsive */
@media (max-width: 768px) {
    .header-inner { flex-direction: column; }
    nav { width: 100%; justify-content: center; }
    .hero h2 { font-size: 1.5rem; }
    .info-grid { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    nav a { padding: 0.8rem 0.7rem; font-size: 0.85rem; }
    .dashboard-grid { grid-template-columns: 1fr; }
}
