* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background-color: #f4f7f6; color: #333; }
.admin-container { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: #2c3e50; color: white; display: flex; flex-direction: column; }
.sidebar h2 { text-align: center; padding: 20px; background: #1a252f; margin-bottom: 20px; font-size: 1.5rem;}
.sidebar a { display: block; padding: 15px 20px; color: #ecf0f1; text-decoration: none; border-left: 3px solid transparent; transition: all 0.3s ease; }
.sidebar a:hover, .sidebar a.active { background: #34495e; border-left-color: #e67e22; }
.main-content { flex: 1; display: flex; flex-direction: column; }
.top-header { background: #fff; padding: 15px 30px; display: flex; justify-content: flex-end; align-items: center; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.top-header a { padding: 8px 15px; background: #e74c3c; color: white; text-decoration: none; border-radius: 4px; font-size: 0.9rem;}
.content { padding: 30px; }
h1.page-title { margin-bottom: 20px; color: #2c3e50; font-size: 1.8rem; }

/* Dashboard Cards */
.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.card { background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); text-align: center; }
.card h3 { font-size: 1.1rem; color: #7f8c8d; margin-bottom: 10px; }
.card p { font-size: 2rem; font-weight: bold; color: #2c3e50; }

/* Tables */
table { width: 100%; border-collapse: collapse; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.05); border-radius: 8px; overflow: hidden; margin-bottom: 20px;}
th, td { padding: 15px; text-align: left; border-bottom: 1px solid #ecf0f1; }
th { background: #f8f9fa; font-weight: 600; color: #2c3e50; }
tr:hover { background: #fdfdfd; }

/* Forms */
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold;}
.form-control { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 1rem; }
.btn { padding: 10px 20px; background: #3498db; color: white; border: none; border-radius: 4px; cursor: pointer; text-decoration: none; display: inline-block; }
.btn-danger { background: #e74c3c; }
.btn-success { background: #2ecc71; }
.btn:hover { opacity: 0.9; }

/* Alerts */
.alert { padding: 15px; margin-bottom: 20px; border-radius: 4px; }
.alert-success { background: #d4edda; color: #155724; }
.alert-danger { background: #f8d7da; color: #721c24; }

/* Login */
.login-body { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #2c3e50; }
.login-box { background: white; padding: 40px; border-radius: 8px; width: 100%; max-width: 400px; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.login-box h2 { text-align: center; margin-bottom: 20px; color: #2c3e50; }
