body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background-color: #f3f4f6;
}

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    width: 220px;
    background-color: #1f2937;
    color: white;
    padding: 25px 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    font-size: 20px;
    margin-bottom: 15px;
}

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

.sidebar li {
    margin-bottom: 12px;
}

.sidebar a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.2s;
}

.sidebar a:hover {
    color: #60a5fa;
}

.main-content {
    flex: 1;
    padding: 30px 40px;
    overflow-y: auto;
}

section {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

h2 {
    margin-bottom: 20px;
    font-size: 20px;
    color: #111827;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 10px;
}

.form-block {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-block input {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    background-color: #f9fafb;
}

button {
    padding: 10px 16px;
    font-size: 14px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.add {
    background-color: #2563eb;
    color: white;
}

.add:hover {
    background-color: #1d4ed8;
}

.update {
    background-color: #16a34a;
    color: white;
}

.update:hover {
    background-color: #15803d;
}

.delete {
    background-color: #dc2626;
    color: white;
}

.delete:hover {
    background-color: #b91c1c;
}

.action-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}
.add-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.form-row input {
  flex: 1;
  min-width: 200px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
}

.form-row:last-child {
  align-items: center;
}

button.add {
  padding: 10px 24px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  background-color: #2563eb;
  color: white;
  cursor: pointer;
}
.form-actions.center {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

