* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
}

/* Login Page */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
}

.login-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  outline: none;
  transition: 0.3s;
}

.form-group input:focus {
  border-color: #667eea;
  box-shadow: 0 0 10px rgba(102, 126, 234, 0.2);
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
  font-weight: bold;
}

.btn-primary {
  background: #667eea;
  color: white;
  width: 100%;
}

.btn-primary:hover {
  background: #5563d1;
}

.btn-success {
  background: #10b981;
  color: white;
}

.btn-danger {
  background: #ef4444;
  color: white;
}

.alert {
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.alert-error {
  background: #fee2e2;
  color: #dc2626;
}

/* Admin Panel */

.admin-container {
  max-width: 1400px;
  margin: auto;
}

.admin-header {
  background: white;
  padding: 25px;
  border-radius: 20px;
  margin-bottom: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.admin-header h1 {
  color: #333;
}

.header-actions {
  display: flex;
  gap: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.stat-card {
  background: white;
  border-radius: 18px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.stat-icon {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

.stat-info h3 {
  font-size: 28px;
  color: #111827;
}

.stat-info p {
  color: #6b7280;
}

.table-container {
  background: white;
  border-radius: 20px;
  overflow-x: auto;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1000px;
}

.data-table th,
.data-table td {
  padding: 16px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.data-table th {
  background: #f9fafb;
  color: #374151;
  font-weight: bold;
}

.data-table tr:hover {
  background: #f9fafb;
}

.badge {
  padding: 7px 12px;
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.badge-blue {
  background: #3b82f6;
}

.badge-green {
  background: #10b981;
}

.badge-purple {
  background: #8b5cf6;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .admin-header {
    flex-direction: column;
    gap: 15px;
  }

  .header-actions {
    width: 100%;
    justify-content: center;
  }

  .stat-card {
    padding: 20px;
  }

  .table-container {
    padding: 10px;
  }
}
