@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== CSS VARIABLES ===== */
:root {
  --bg-main: #f0f2f5;
  --bg-surface: #ffffff;
  --sidebar-bg: #1a1d23;
  --sidebar-active: #2d6df6;
  --sidebar-hover: rgba(255,255,255,0.07);
  --sidebar-text: rgba(255,255,255,0.65);
  --sidebar-text-active: #ffffff;
  --primary: #2d6df6;
  --primary-dark: #1a55d4;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-main: #111827;
  --text-sub: #6b7280;
  --border: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* ===== RESET ===== */




/* ===== LOGIN OVERLAY ===== */




















/* ===== SIDEBAR ===== */











/* Category labels */














/* ===== MAIN CONTENT ===== */


/* ===== TOPBAR ===== */






/* ===== SAVE BUTTON ===== */
.save-btn {
  background: var(--success);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 8px rgba(34,197,94,0.3);
}

.save-btn:hover {
  background: #16a34a;
}

.save-btn:active {
  transform: scale(0.97);
}

.save-btn:disabled {
  background: var(--text-sub);
  box-shadow: none;
  cursor: not-allowed;
}

/* ===== CONTENT AREA ===== */
.content-area {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
  background: var(--bg-main);
}

/* ===== DATA TABLE ===== */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.data-table thead {
  background: #f9fafb;
}

.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tbody tr:last-child td {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #f9fafb;
}

/* ===== INPUTS INSIDE TABLE ===== */
.input-row input[type="text"],
.input-row input[type="number"],
.input-row select {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  background: #f9fafb;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text-main);
  transition: border-color 0.2s, background 0.2s;
}

.input-row input[type="text"]:focus,
.input-row input[type="number"]:focus,
.input-row select:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,109,246,0.08);
}

/* ===== ACTION BUTTONS ===== */
.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, transform 0.1s;
  font-weight: bold;
  font-size: 13px;
}

.action-btn:active {
  transform: scale(0.92);
}

.action-btn.add {
  background: var(--primary);
  color: white;
  width: auto;
  padding: 9px 18px;
  font-size: 13.5px;
  gap: 7px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 8px rgba(45,109,246,0.2);
}

.action-btn.add:hover {
  background: var(--primary-dark);
}

.action-btn.del {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

.action-btn.del:hover {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
}

/* ===== STATUS TOAST ===== */
#status-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #1a1d23;
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  display: none;
  z-index: 9000;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 13.5px;
  border-left: 4px solid var(--success);
}

/* ===== SETTINGS SECTION (Tetapan Sistem) ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.setting-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.setting-card label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-sub);
  margin-bottom: 8px;
}

.setting-card input[type="number"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  outline: none;
  background: #f9fafb;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.setting-card input[type="number"]:focus {
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(45,109,246,0.08);
}

/* ===== BREADCRUMB / PAGE HEADING ===== */
.page-heading {
  margin-bottom: 20px;
}

.page-heading h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.page-heading p {
  font-size: 13px;
  color: var(--text-sub);
  margin-top: 3px;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-sub);
}

.empty-state i {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.3;
  display: block;
}

/* ===== RESET REQUESTS ===== */
.reset-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.reset-card .staff-name {
  font-weight: 700;
  font-size: 14px;
}

.reset-card .staff-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.approve-btn {
  background: var(--success);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.2s;
}

.approve-btn:hover {
  background: #16a34a;
}

/* ===== MAP MODAL ===== */
#map-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 8000;
  display: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

#map-modal-overlay.open {
  display: flex;
}

#map-modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 680px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

#map-modal-header {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#map-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-sub);
  line-height: 1;
}

#map-modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* ===== POSTERS GRID ===== */
.posters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.poster-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.poster-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.poster-img-container {
  width: 100%;
  aspect-ratio: 16/9;
  background: #f3f4f6;
  position: relative;
}

.poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-actions {
  position: relative;
  padding: 10px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.poster-upload-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(45, 109, 246, 0.1);
  transition: background 0.2s;
}
.poster-upload-btn:hover {
  background: rgba(45, 109, 246, 0.15);
}
.poster-upload-input {
  display: none;
}

.poster-add-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(45, 109, 246, 0.03);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  aspect-ratio: 16/9;
  color: var(--primary);
  font-weight: 600;
  transition: background 0.2s;
}
.poster-add-card:hover {
  background: rgba(45, 109, 246, 0.08);
}
.poster-add-card i {
  font-size: 32px;
}

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-img-container {
  width: 100%;
  aspect-ratio: 1;
  background: #f9fafb;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.product-upload-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  background: rgba(0,0,0,0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}
.product-upload-btn:hover {
  background: rgba(0,0,0,0.8);
}
.product-upload-input {
  display: none;
}

.product-info-container {
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-input-group label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-sub);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-input-group input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  background: #f9fafb;
  transition: border-color 0.2s;
}

.product-input-group input:focus {
  border-color: var(--primary);
  background: #fff;
}

.product-price-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.product-price-input-wrapper span {
  position: absolute;
  left: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
}

.product-price-input-wrapper input {
  padding-left: 36px;
}

.product-actions {
  padding: 0 15px 15px;
  display: flex;
  justify-content: flex-end;
}

.product-add-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: rgba(45, 109, 246, 0.03);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  min-height: 300px;
  color: var(--primary);
  font-weight: 600;
  transition: background 0.2s;
}
.product-add-card:hover {
  background: rgba(45, 109, 246, 0.08);
}
.product-add-card i {
  font-size: 32px;
}

/* ===== TABLE PRICE WRAPPER ===== */
.table-price-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.table-price-wrapper span {
  position: absolute;
  left: 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-sub);
  pointer-events: none;
}
.table-price-wrapper input {
  width: 100%;
  padding-left: 36px !important;
}
