/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f5f5f5; color: #333; }

/* === NAV === */
.main-nav {
    background: #2e7d32; color: white; padding: 12px 24px;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 10px;
}
.nav-brand { font-size: 20px; font-weight: bold; }
.nav-links { display: flex; gap: 6px; flex-wrap: wrap; }
.nav-links a {
    color: white; text-decoration: none; padding: 6px 14px;
    border-radius: 4px; font-size: 14px; transition: background 0.2s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255,255,255,0.2); }

/* === CONTAINER === */
.container { max-width: 1400px; margin: 20px auto; padding: 0 20px; }

/* === ALERTS === */
.alert { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-weight: bold; }
.alert-green { background: #e8f5e9; border: 1px solid #4caf50; color: #2e7d32; }
.alert-orange { background: #fff3e0; border: 1px solid #ff9800; color: #e65100; }

/* === FORM CARD === */
.form-card {
    background: #f1f8e9; border: 1px solid #a5d6a7;
    border-radius: 8px; padding: 24px; margin-bottom: 30px;
}
.form-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { display: flex; flex-direction: column; font-weight: bold; gap: 4px; font-size: 14px; }
.form-grid input[type=text],
.form-grid input[type=email],
.form-grid input[type=number],
.form-grid textarea,
.form-grid select {
    padding: 8px 10px; border: 1px solid #aaa; border-radius: 5px;
    font-size: 14px; font-family: inherit;
}
.form-grid textarea { resize: vertical; }

.checkbox-label {
    display: flex !important; flex-direction: row !important;
    align-items: center; gap: 10px !important; font-weight: bold;
}
.checkbox-label input[type=checkbox] { width: 18px; height: 18px; cursor: pointer; }

/* === BUTTONS === */
.btn-row { display: flex; gap: 10px; margin-top: 16px; }
.btn { padding: 9px 24px; border: none; border-radius: 5px; cursor: pointer; font-size: 14px; font-weight: bold; text-decoration: none; display: inline-block; }
.btn-green { background: #2e7d32; color: white; }
.btn-green:hover { background: #1b5e20; }
.btn-orange { background: #ef6c00; color: white; }
.btn-orange:hover { background: #bf360c; }

.btn-small { padding: 4px 10px; border-radius: 4px; font-size: 13px; text-decoration: none; border: none; cursor: pointer; display: inline-block; }
.btn-edit { background: #1976d2; color: white; }
.btn-edit:hover { background: #0d47a1; }
.btn-delete { background: #c62828; color: white; }
.btn-delete:hover { background: #b71c1c; }

.actions { display: flex; gap: 6px; justify-content: center; }

/* === TABLE === */
.table-responsive { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; font-size: 14px; }
th { background: #e8f5e9; font-weight: bold; }
tr:hover { background: #f9fff9; }
.row-inactive { opacity: 0.5; }

/* === FOOTER === */
.main-footer {
    text-align: center; padding: 20px; margin-top: 40px;
    border-top: 1px solid #ddd; color: #888; font-size: 13px;
}
/* === DASHBOARD === */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}
.dash-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.dash-card h3 { font-size: 14px; color: #666; margin-bottom: 10px; }
.dash-value { font-size: 32px; font-weight: bold; color: #2e7d32; }
.dash-sub { font-size: 13px; color: #888; margin-top: 6px; }
.dash-bar { background: #e0e0e0; border-radius: 4px; height: 8px; margin-top: 10px; overflow: hidden; }
.dash-bar-fill { background: #4caf50; height: 100%; border-radius: 4px; transition: width 0.3s; }
