:root {
    --primary: #1b5e20;
    --primary-light: #2e7d32;
    --primary-dark: #0d3b12;
    --secondary: #ff6f00;
    --accent: #4caf50;
    --bg-light: #f5f7f5;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --radius: 12px;
}

* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
}

/* Authentication Pages */
.auth-bg {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-logo {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.auth-subtitle {
    font-size: 0.8rem;
    opacity: 0.85;
    margin-bottom: 0;
}

.auth-body {
    padding: 30px;
}

.auth-form .form-control {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 10px 15px;
    transition: all 0.2s;
}

.auth-form .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid var(--border);
    color: var(--text-muted);
}

.toggle-password {
    border-left: none;
}

.toggle-password:hover {
    border-color: var(--border);
}

.auth-footer {
    padding: 15px 30px;
    background: #f8f9fa;
    text-align: center;
    font-size: 0.85rem;
}

.auth-card .alert {
    border-radius: 0;
    margin: 0;
    border: none;
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: 8px;
    font-weight: 600;
}

.btn-primary:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-warning {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-warning:hover {
    background: #e65100;
    border-color: #e65100;
}

/* Dashboard */
.main-content {
    padding: 30px;
    min-height: calc(100vh - 130px);
}

.stat-card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.3;
}

.stat-card h3 {
    font-size: 2rem;
    font-weight: 700;
}

.stat-card .card-title {
    opacity: 0.9;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.card {
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    color: var(--text-dark);
    padding: 15px 20px;
}

.avatar-placeholder {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(27, 94, 32, 0.03);
}

.badge {
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 20px;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer {
    font-size: 0.85rem;
    border-top: 1px solid var(--border);
}

/* Form styling */
.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.form-select {
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 8px 15px;
}

.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .auth-bg {
        padding: 10px;
    }

    .auth-header, .auth-body {
        padding: 20px;
    }

    .auth-title {
        font-size: 1.25rem;
    }

    .main-content {
        padding: 15px;
    }

    .stat-card {
        margin-bottom: 15px;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card {
    animation: fadeIn 0.3s ease-out;
}
