* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  background-color: #e0f7fa;
}

/* ✅ Sidebar Styling */
.sidebar {
  width: 280px;
  background-color: #b2dfdb;
  padding: 20px;
  height: 100vh;
  box-shadow: 2px 0 8px rgba(0,0,0,0.2);
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #00796b;
}

.sidebar label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.sidebar input[type="text"],
.sidebar input[type="email"],
.sidebar input[type="number"] {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.gender {
  margin: 8px 0;
}

button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: none;
  color: white;
  background-color: #00796b;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

button:hover {
  background-color: #004d40;
}

.clear-btn {
  background-color: #d32f2f;
}

.clear-btn:hover {
  background-color: #a02828;
}

.total-btn {
  background-color: #388e3c;
}

.total-btn:hover {
  background-color: #2e7d32;
}

.print-btn {
  background-color: #3949ab;
}

.print-btn:hover {
  background-color: #283593;
}

/* ✅ Main Content */
.main-content {
  flex: 1;
  padding: 20px;
}

/* ✅ Professional Header */
header {
  background: linear-gradient(90deg, #1565c0, #1e88e5);
  color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

header h1 {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 1px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
}

th, td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

th {
  background-color: #00796b;
  color: white;
}

tr.selected {
  background-color: #b3e5fc;
}

.action-btn, .edit-btn {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: white;
  margin: 2px;
}

.action-btn {
  background-color: #e53935;
}

.action-btn:hover {
  background-color: #b71c1c;
}

.edit-btn {
  background-color: #f9a825;
}

.edit-btn:hover {
  background-color: #f57f17;
}

/* ✅ Footer Styling */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #00796b;
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 16px;
  font-weight: bold;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}
