/* Admin Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #f4f6f9; color: #333; display: flex; min-height: 100vh; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Sidebar */
.sidebar { width: 250px; background: #343a40; color: #fff; display: flex; flex-direction: column; position: fixed; height: 100%; }
.sidebar-header { padding: 20px; background: #212529; text-align: center; border-bottom: 1px solid #4b545c; }
.sidebar-header h2 { font-size: 1.2rem; text-transform: uppercase; letter-spacing: 1px; color: #f7c04a; }
.sidebar-menu { padding: 20px 0; flex: 1; }
.sidebar-menu a { display: block; padding: 15px 25px; color: #c2c7d0; transition: 0.3s; border-bottom: 1px solid rgba(255,255,255,0.05); }
.sidebar-menu a:hover, .sidebar-menu a.active { background: #007bff; color: #fff; padding-left: 30px; }
.logout { padding: 15px 25px; background: #dc3545; color: white; text-align: center; }

/* Main Content */
.main-content { margin-left: 250px; flex: 1; padding: 30px; }
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.page-header h1 { font-size: 1.5rem; color: #495057; }

/* Cards */
.dashboard-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.card { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-left: 5px solid #007bff; }
.card h3 { font-size: 2rem; margin-bottom: 5px; color: #333; }
.card p { color: #666; font-size: 0.9rem; text-transform: uppercase; }

/* Forms & Tables */
.admin-card { background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-bottom: 30px; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 600; color: #555; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; }
.btn { padding: 10px 20px; border: none; border-radius: 4px; cursor: pointer; color: #fff; font-size: 0.9rem; }
.btn-primary { background: #007bff; }
.btn-danger { background: #dc3545; }
.btn-success { background: #28a745; }

table { width: 100%; border-collapse: collapse; margin-top: 20px; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid #eee; }
table th { background: #f8f9fa; color: #555; font-weight: 600; }
table img { height: 50px; border-radius: 4px; }

/* Alerts */
.alert { padding: 12px; border-radius: 4px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

@media (max-width: 768px) {
    .sidebar { width: 70px; }
    .sidebar-header h2, .sidebar-menu a span, .logout span { display: none; }
    .main-content { margin-left: 70px; padding: 15px; }
    .sidebar-menu a { padding: 15px; text-align: center; }
}