/* RESET */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

/* BODY */
body {
  margin: 0;
  background: linear-gradient(135deg, #1f2933, #111827);
  color: #f9fafb;
  min-height: 100vh;
}

/* NAVIGATION */
.nav {
  display: flex;
  gap: 12px;
  padding: 14px 24px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  align-items: center;
}

.nav-brand {
  font-weight: 700;
  font-size: 16px;
  color: #f9fafb;
  margin-right: auto;
  padding: 8px 16px;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 999px;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
}

.nav a {
  color: #f9fafb;
  text-decoration: none;
  padding: 8px 16px;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.nav a:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

.nav a.active {
  background: #3b82f6;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

/* HEADINGS */
h1 {
  margin: 30px 24px 20px;
  font-size: 28px;
}

/* CARD CONTAINER */
form, table {
  background: rgba(255,255,255,0.06);
  margin: 0 24px 24px;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* FORM */
label {
  font-size: 14px;
  opacity: 0.9;
}

input, select {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 15px;
}

input::placeholder {
  color: rgba(255,255,255,0.5);
}

/* BUTTONS */
button {
  margin-top: 10px;
  padding: 12px 18px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(59,130,246,0.4);
}

/* TABLE */
table {
  width: calc(100% - 48px);
  border-collapse: collapse;
}

thead {
  background: rgba(255,255,255,0.08);
}

th, td {
  padding: 14px 16px;
  text-align: left;
}

tbody tr {
  transition: background 0.15s ease;
}

tbody tr:hover {
  background: rgba(255,255,255,0.05);
}

tbody tr.editing {
  background: rgba(59, 130, 246, 0.2);
  box-shadow: inset 0 0 12px rgba(59, 130, 246, 0.3);
}

tbody tr.saved {
  animation: highlight-saved 1.5s ease-out;
}

tbody tr.cancelled {
  animation: highlight-cancelled 1.5s ease-out;
}

@keyframes highlight-saved {
  0% {
    background: rgba(16, 185, 129, 0.4);
    box-shadow: inset 0 0 12px rgba(16, 185, 129, 0.5);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

@keyframes highlight-cancelled {
  0% {
    background: rgba(249, 115, 22, 0.4);
    box-shadow: inset 0 0 12px rgba(249, 115, 22, 0.5);
  }
  100% {
    background: transparent;
    box-shadow: none;
  }
}

tbody tr:hover {
  background: rgba(255,255,255,0.05);
}

/* DELETE BUTTON */
td button {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  box-shadow: none;
}

td button:hover {
  box-shadow: 0 10px 25px rgba(239,68,68,0.4);
}

/* RESPONSIVE */
@media (max-width: 700px) {
  .nav {
    flex-direction: column;
  }

  h1 {
    font-size: 22px;
  }
}

/* BUTTON COLORS */
.btn-edit {
  background: #3b82f6 !important;
  color: white !important;
}

.btn-edit:hover {
  background: #2563eb !important;
}

.btn-delete {
  background: #ef4444 !important;
  color: white !important;
}

.btn-delete:hover {
  background: #dc2626 !important;
}

.btn-save {
  background: #10b981 !important;
  color: white !important;
}

.btn-save:hover {
  background: #059669 !important;
}

.btn-cancel {
  background: #f97316 !important;
  color: white !important;
}

.btn-cancel:hover {
  background: #ea580c !important;
}
