* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: #f5f7fa; color: #1a1a2e; }

/* Login */
.login-screen {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #2D6A4F 0%, #1B4332 100%);
}
.login-box {
    background: #fff; padding: 48px 40px; border-radius: 20px; text-align: center;
    width: 360px; box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.login-icon { font-size: 48px; margin-bottom: 12px; }
.login-box h1 { font-size: 1.5rem; color: #2D6A4F; margin-bottom: 24px; }
.login-box input {
    width: 100%; padding: 14px 16px; border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 1rem; margin-bottom: 16px; outline: none;
}
.login-box input:focus { border-color: #2D6A4F; }
.login-box button {
    width: 100%; padding: 14px; background: #2D6A4F; color: #fff; border: none;
    border-radius: 12px; font-size: 1rem; font-weight: 600; cursor: pointer;
}
.login-box button:hover { background: #245a42; }
.error { color: #dc2626; font-size: 0.85rem; margin-top: 8px; }

/* App Layout */
.app { display: flex; min-height: 100vh; }
.sidebar {
    width: 240px; background: #1a1a2e; color: #fff; padding: 24px 0;
    display: flex; flex-direction: column; position: fixed; top: 0; bottom: 0;
}
.sidebar-brand { padding: 0 20px 24px; font-size: 1.2rem; font-weight: 800; color: #6ee7b7; }
.nav-item {
    display: flex; align-items: center; gap: 10px; padding: 12px 20px;
    color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 500;
    transition: all 0.2s;
}
.nav-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.nav-item.active { background: rgba(110,231,183,0.15); color: #6ee7b7; border-right: 3px solid #6ee7b7; }
.nav-icon { font-size: 1.1rem; }
.sidebar-footer { margin-top: auto; padding: 20px; }
.logout-btn {
    width: 100%; padding: 10px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
    border: none; border-radius: 8px; cursor: pointer; font-weight: 500;
}
.logout-btn:hover { background: rgba(255,255,255,0.2); color: #fff; }

/* Content */
.content { margin-left: 240px; flex: 1; padding: 32px; }
.page h2 { font-size: 1.6rem; font-weight: 800; margin-bottom: 24px; }

/* Stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
    background: #fff; padding: 24px; border-radius: 16px; border: 1px solid #e8ecf1;
}
.stat-card .stat-value { font-size: 2rem; font-weight: 800; color: #2D6A4F; }
.stat-card .stat-label { font-size: 0.85rem; color: #6b7280; margin-top: 4px; }

/* Tables */
.table-container { background: #fff; border-radius: 16px; border: 1px solid #e8ecf1; overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; padding: 14px 16px; background: #f9fafb; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; border-bottom: 1px solid #e8ecf1; }
td { padding: 14px 16px; border-bottom: 1px solid #f3f4f6; font-size: 0.9rem; }
tr:hover { background: #f9fafb; }

/* Badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-green { background: #f0fdf4; color: #16a34a; }
.badge-red { background: #fef2f2; color: #dc2626; }
.badge-blue { background: #eff6ff; color: #2563eb; }
.badge-yellow { background: #fef3c7; color: #92400e; }
.badge-gray { background: #f3f4f6; color: #6b7280; }

/* Cards */
.section-card { background: #fff; padding: 24px; border-radius: 16px; border: 1px solid #e8ecf1; }
.section-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.hint { color: #6b7280; font-size: 0.9rem; margin-bottom: 12px; }
pre { background: #1a1a2e; color: #6ee7b7; padding: 16px; border-radius: 10px; font-size: 0.85rem; overflow-x: auto; }
code { background: #f3f4f6; padding: 2px 8px; border-radius: 6px; font-size: 0.85rem; }
.settings-table td { padding: 8px 12px; }

/* Buttons */
.action-btn {
    padding: 10px 20px; background: #2D6A4F; color: #fff; border: none;
    border-radius: 10px; font-weight: 600; cursor: pointer; font-size: 0.9rem;
}
.action-btn:hover { background: #245a42; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; border-radius: 8px; border: none; cursor: pointer; font-weight: 500; }
.btn-danger { background: #fef2f2; color: #dc2626; }
.btn-danger:hover { background: #fee2e2; }
.btn-view { background: #eff6ff; color: #2563eb; }
.btn-view:hover { background: #dbeafe; }

/* Modal */
.modal {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex;
    align-items: center; justify-content: center; z-index: 100;
}
.modal-content { background: #fff; border-radius: 20px; padding: 32px; width: 600px; max-height: 80vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.close-btn { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #6b7280; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar-brand, .nav-item span:not(.nav-icon), .sidebar-footer { display: none; }
    .nav-item { justify-content: center; padding: 14px; }
    .content { margin-left: 60px; padding: 16px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
}
