/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Segoe UI', sans-serif; }
.admin-body { background: #f4f6f9; }
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar { width: 250px; background: #1a3c6e; color: #fff; position: fixed; height: 100vh; padding: 20px 0; }
.sidebar-header { text-align: center; font-size: 1.3rem; font-weight: bold; margin-bottom: 30px; padding-bottom: 15px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.sidebar-nav a { display: block; padding: 12px 25px; color: #ccc; text-decoration: none; transition: 0.3s; }
.sidebar-nav a:hover, .sidebar-nav a.active { background: rgba(255,255,255,0.1); color: #fff; border-left: 4px solid #4a90d9; }
.sidebar-nav a:last-child { margin-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; }

/* Content */
.admin-content { margin-left: 250px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar { background: #fff; padding: 20px 30px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.admin-body-content { padding: 30px; }

/* Cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: #fff; padding: 25px; border-radius: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.stat-card h4 { color: #666; font-size: 0.9rem; margin-bottom: 8px; }
.stat-card .value { font-size: 2rem; font-weight: bold; color: #1a3c6e; }

/* Tables & Forms */
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
th, td { padding: 12px 15px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8fafc; font-weight: 600; color: #333; }
tr:hover { background: #f9f9f9; }
.btn { padding: 8px 15px; border: none; border-radius: 6px; cursor: pointer; font-size: 0.9rem; color: #fff; }
.btn-primary { background: #4a90d9; }
.btn-success { background: #2ecc71; }
.btn-danger { background: #e74c3c; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: 500; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 6px; }
.form-row { display: flex; gap: 15px; flex-wrap: wrap; }
.form-row > div { flex: 1; min-width: 200px; }
.alert { padding: 12px; border-radius: 6px; margin-bottom: 20px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }