/* 🌐 Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f4f4f4;
  color: #333;
}

/* 🧱 Container Layout */
.container {
  display: flex;
  min-height: 100vh;
  flex-direction: row;
}

/* 📚 Sidebar */
.sidebar {
  width: 250px;
  background: #110255;
  color: white;
  padding: 20px;
  flex-shrink: 0;
}

.sidebar h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
}

.sidebar nav ul {
  list-style: none;
}

.sidebar nav ul li {
  margin-bottom: 15px;
}

.sidebar nav ul li a {
  display: block;
  padding: 12px 18px;
  background-color: #1e168b;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.sidebar nav ul li a:hover {
  background-color: #3020ad;
}

/* 📄 Main Content */
.main-content {
  flex-grow: 1;
  padding: 40px 30px;
  overflow-y: auto;
  background: #f9f9f9;
}

/* 🏠 Dashboard Heading */
.dashboard-home h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #110255;
}

/* 🔗 Quick Links */
.quick-links {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-top: 20px;
}

.quick-links button,
.quick-links a.btn-link {
  padding: 12px;
  background: #110255;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.3s ease, transform 0.2s ease;
}

.quick-links button:hover,
.quick-links a.btn-link:hover {
  background: #1f3ad8;
  transform: translateY(-2px);
}

.quick-links button:active {
  transform: scale(0.98);
}

/* 📋 Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border-radius: 5px;
  overflow: hidden;
}

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

table th {
  background: #e3e6f3;
  font-weight: 600;
}

/* 🧩 Cards */
.card {
  background: white;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 🧷 Action Buttons */
button.action-btn {
  margin: 0 4px;
  padding: 6px 10px;
  font-size: 14px;
  background: #110255;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button.action-btn:hover {
  background: #1f3ad8;
}

/* 📱 Responsive Sidebar */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    text-align: center;
    padding: 15px;
  }

  .sidebar nav ul li a {
    padding: 10px;
    font-size: 16px;
  }

  .main-content {
    padding: 30px 20px;
  }

  .dashboard-home h2 {
    font-size: 24px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}
