* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Arial, sans-serif; background: #f4f7fc; }
.container, .admin-wrapper { max-width: 1200px; margin: 20px auto; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 12px 10px; border: 1px solid #ddd; text-align: left; }
th { background: #007bff; color: white; font-weight: 600; }
tr:hover { background: #f5f5f5; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: #333; }
input[type=text], input[type=password], input[type=email], select, textarea {
    width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: #007bff; outline: none; box-shadow: 0 0 0 2px rgba(0,123,255,0.1); }
button, .btn {
    background: #007bff; color: white; padding: 10px 20px; border: none; border-radius: 4px;
    cursor: pointer; text-decoration: none; display: inline-block; font-size: 16px;
    transition: background 0.2s; margin-right: 5px;
}
button:hover, .btn:hover { background: #0056b3; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }
.error { background: #f8d7da; color: #721c24; padding: 12px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #f5c6cb; }
.success { background: #d4edda; color: #155724; padding: 12px; border-radius: 4px; margin-bottom: 20px; border: 1px solid #c3e6cb; }
.required { color: red; }
.sidebar { width: 220px; float: left; background: #343a40; color: white; padding: 20px; border-radius: 8px 0 0 8px; }
.content { margin-left: 240px; padding: 20px; }
.sidebar h3 { color: #fff; margin-bottom: 20px; }
.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 12px; }
.sidebar ul li a { color: #adb5bd; text-decoration: none; display: block; padding: 8px; border-radius: 4px; }
.sidebar ul li a:hover { background: #007bff; color: white; }
.admin-wrapper { overflow: hidden; }
.login-body { background: #e9ecef; display: flex; justify-content: center; align-items: center; height: 100vh; }
.login-box { width: 380px; background: white; padding: 35px; border-radius: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.1); }
.login-box h2 { margin-bottom: 25px; text-align: center; color: #007bff; }
.stat-box { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 25px; flex: 1 1 200px; text-align: center; }
.stat-box h3 { color: #495057; font-size: 18px; margin-bottom: 15px; }
@media (max-width: 768px) {
    .sidebar { width: 100%; float: none; border-radius: 8px; margin-bottom: 20px; }
    .content { margin-left: 0; }
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    td { border: none; position: relative; padding-left: 45% !important; border-bottom: 1px solid #eee; }
    td:before { content: attr(data-label); position: absolute; left: 12px; width: 40%; font-weight: bold; color: #007bff; }
    .login-box { width: 90%; margin: 0 20px; }
}