/* ============================
   Global Styles
   ============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f6f9;
  color: #333;
  line-height: 1.6;
}

/* ============================
   Login Page
   ============================ */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-box {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.login-box h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-box input {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.3s;
}

.login-box button:hover {
  background: #0056b3;
}

/* ============================
   Dashboard Layout
   ============================ */
.dashboard-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: #2c3e50;
  color: #fff;
  padding-top: 20px;
  flex-shrink: 0;
}

.sidebar h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 20px;
  color: #f1c40f;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  color: #ecf0f1;
  text-decoration: none;
  padding: 12px 20px;
  display: block;
  transition: background 0.3s;
}

.sidebar ul li a:hover,
.sidebar ul li a.active {
  background: #34495e;
  border-left: 4px solid #f1c40f;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 30px;
}

/* ============================
   Dashboard Widgets
   ============================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 22px;
  font-weight: bold;
  color: #007bff;
}

/* ============================
   Table (Dealers Management)
   ============================ */
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.table th, .table td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.table th {
  background: #007bff;
  color: #fff;
}

.table tr:hover {
  background: #f9f9f9;
}

.btn {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
  cursor: pointer;
}

.btn-approve {
  background: #28a745;
  color: #fff;
  border: none;
}

.btn-approve:hover {
  background: #218838;
}

.btn-reject {
  background: #dc3545;
  color: #fff;
  border: none;
}

.btn-reject:hover {
  background: #c82333;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 768px) {
  .dashboard-container {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}
