:root {
  --brand:#ff6b00;
  --bg:#f4f6fb;
  --card:#ffffff;
  --text:#1f2937;
  --muted:#6b7280;
  --border:#e5e7eb;
}

* { box-sizing:border-box; }

body {
  margin:0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:var(--bg);
  color:var(--text);
}

/* ===== Layout ===== */
.layout {
  display:flex;
  min-height:100vh;
}

.sidebar {
  width:240px;
  background:#111827;
  color:#fff;
  padding:20px;
}

.sidebar h1 {
  margin:0 0 20px;
  font-size:1.4rem;
  color:var(--brand);
}

.sidebar a {
  display:block;
  padding:12px 14px;
  border-radius:10px;
  color:#d1d5db;
  text-decoration:none;
  margin-bottom:6px;
  font-weight:500;
}

.sidebar a:hover,
.sidebar a.active {
  background:#1f2937;
  color:#fff;
}

/* ===== Main ===== */
.main {
  flex:1;
  display:flex;
  flex-direction:column;
}

.topbar {
  background:#fff;
  padding:14px 22px;
  border-bottom:1px solid var(--border);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.content {
  padding:22px;
}

/* ===== Cards ===== */
.card {
  background:var(--card);
  border-radius:16px;
  padding:18px;
  box-shadow:0 10px 30px rgba(0,0,0,.06);
  margin-bottom:22px;
}

/* ===== Buttons ===== */
.btn {
  padding:10px 16px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600;
}

.btn-primary {
  background:var(--brand);
  color:#fff;
}

.btn-primary:hover { opacity:.9 }

.btn-light {
  background:#f3f4f6;
}

.btn-outline {
  background:#fff;
  border:1px solid var(--border);
}

/* ===== Tables ===== */
.table-wrap { overflow:auto }

table {
  width:100%;
  border-collapse:collapse;
}

th, td {
  padding:14px;
  border-bottom:1px solid var(--border);
  text-align:left;
}

th {
  font-size:13px;
  text-transform:uppercase;
  color:var(--muted);
}

tr:hover { background:#fafafa }

/* ===== Inputs ===== */
input, textarea {
  width:100%;
  padding:12px;
  border-radius:10px;
  border:1px solid var(--border);
  margin-bottom:12px;
  font-size:14px;
}

/* ===== Modals ===== */
.modal {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:1000;
}

.modal.show { display:flex }

.modal-box {
  background:#fff;
  border-radius:18px;
  width:620px;
  max-height:90vh;
  overflow:auto;
  padding:22px;
}

.modal-footer {
  display:flex;
  gap:10px;
  margin-top:16px;
}

/* ===== Tabs ===== */
.tabBtn.active {
  background:var(--brand);
  color:#fff;
}

/* ===== Pagination ===== */
.pagination {
  display:flex;
  gap:6px;
  margin-top:12px;
}

.pagination button {
  padding:8px 12px;
  border-radius:8px;
  border:1px solid var(--border);
  background:#fff;
}

/* ===== Notifications ===== */
#notify {
  position:fixed;
  top:18px;
  left:50%;
  transform:translateX(-50%);
  z-index:9999;
}

.toast {
  background:#fff;
  padding:14px 18px;
  border-radius:12px;
  margin-bottom:10px;
  box-shadow:0 10px 30px rgba(0,0,0,.15);
  font-weight:600;
}

.toast.success { border-left:6px solid #16a34a }
.toast.error { border-left:6px solid #dc2626 }
.toast.info { border-left:6px solid var(--brand) }

/* ===== Utility Classes ===== */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ===== Labels ===== */
label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
}

/* ===== Image Preview ===== */
.img-preview {
  max-width: 200px;
  max-height: 200px;
  border-radius: 8px;
  margin-top: 10px;
  border: 2px solid var(--border);
  display: block;
}

/* ===== Tabs ===== */
.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 8px;
}

.tabBtn {
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.tabBtn:hover {
  background: #f3f4f6;
}

.tab {
  display: none;
}

.tab.active {
  display: block;
}

#hotelForm .tab {
  display: none;
}

#hotelForm .tab.active {
  display: block;
}

/* ===== Input Focus States ===== */
input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

/* ===== Button Improvements ===== */
.btn {
  transition: all 0.2s ease;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-light:hover {
  background: #e5e7eb;
}

.btn-outline:hover {
  background: #f9fafb;
  border-color: var(--brand);
}

/* ===== Table Improvements ===== */
tr:hover {
  background: #fafafa;
  transition: background 0.2s ease;
}

/* ===== Modal Improvements ===== */
.modal {
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-box {
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ===== Password Strength Indicator ===== */
.password-strength {
  margin-top: -8px;
  margin-bottom: 12px;
  font-size: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.password-strength::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  transition: width 0.3s ease, background 0.3s ease;
  border-radius: 2px;
}

.password-strength.weak::after {
  width: 33%;
  background: #dc2626;
}

.password-strength.medium::after {
  width: 66%;
  background: #f59e0b;
}

.password-strength.strong::after {
  width: 100%;
  background: #16a34a;
}

.password-match {
  margin-top: -8px;
  margin-bottom: 12px;
  font-size: 12px;
  min-height: 16px;
}

.password-match.match {
  color: #16a34a;
}

.password-match.mismatch {
  color: #dc2626;
}
