/* ================= GLOBAL ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  display: flex;
  background: #f5f5f5;
  min-height: 100vh;
}

/* ================= TOP BAR ================= */
.admin-topbar {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background: #000;
  color: #fff;
  padding: 10px 30px;
  display: flex;
  align-items: center;
  z-index: 1000;
  font-size: 14px;
}

/* ================= SIDEBAR ================= */
.sidebar {
  display: flex;
  flex-direction: column;
  width: 260px;
  background: #fff;
  border-right: 1px solid #ddd;
  height: 100vh;
  padding-top: 70px;
}

.sidebar h2 {
  font-size: 20px;
  color: #ff6600;
  padding: 20px;
  font-weight: 700;
}

/* Menu wrapper */
.menu-wrapper {
  display: flex;
  flex-direction: column;
}

/* Menu items */
.menu-item {
  padding: 15px 20px;
  font-size: 16px;
  color: #333;
  border-left: 4px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.menu-item:hover {
  background: #f0f0f0;
}

.menu-item.active {
  background: #fff4eb;
  border-left: 4px solid #ff6600;
  font-weight: 700;
}

/* ================= LOGOUT BUTTON ================= */
.logout-btn {
  margin-top: auto;          /* Push to bottom */
  background: #ff6600;
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 12px 0;
  border-radius: 6px;
  cursor: pointer;
  margin: 20px;
}

.logout-btn:hover {
  background: #ff6600;
}

.logout-btn:active {
  transform: scale(0.97);
}

/* ================= MAIN CONTENT ================= */
.main {
  flex: 1;
  padding: 110px 40px 40px 300px;
}

.main h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #222;
  font-weight: 700;
}

/* ================= BUTTONS ================= */
.add-btn {
  background: #ff6600;
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
}

.edit-btn {
  background: #0066ff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.del-btn {
  background: #e60000;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: 5px;
}

/* ================= TABLE ================= */
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

th,
td {
  padding: 14px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
}

th {
  background: #fff;
  font-weight: 700;
  text-align: left;
}

td {
  color: #333;
}

table tbody tr:hover {
  background-color: #f9f9f9;
}

/* ================= MODAL ================= */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal {
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.modal-header {
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-body {
  padding: 20px;
  max-height: 65vh;
  overflow: auto;
}

.modal-footer {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  text-align: right;
}

/* ================= FORM ================= */
.form-row {
  margin-bottom: 15px;
}

.form-row label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 7px;
}

/* ================= GENERIC BUTTON ================= */
.btn {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 600;
}

.btn.cancel {
  background: #ccc;
  color: #000;
  margin-right: 8px;
}

/* ================= HOVER EFFECTS ================= */
.edit-btn:hover,
.del-btn:hover,
.add-btn:hover,
.btn:hover {
  opacity: 0.85;
  transition: 0.2s ease-in-out;
}
