/* ========================================
   Nova Medtech Admin - Matching Frontend Style
   ======================================== */

/* ========== Reset & Base ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Nova Medtech Brand Colors - matching frontend */
  --primary: #1976d2;
  --primary-hover: #1565c0;
  --primary-light: #e3f2fd;
  --nav-dark: #0a2463;
  --nav-dark-light: #0d2d7a;
  --nav-hover: rgba(255,255,255,0.1);
  
  --success: #2e7d32;
  --success-light: #e8f5e9;
  --danger: #d32f2f;
  --danger-light: #ffebee;
  --warning: #f57c00;
  --warning-light: #fff3e0;
  --info: #0288d1;
  --info-light: #e1f5fe;
  
  --gray-50: #fafbfc;
  --gray-100: #f5f7fa;
  --gray-200: #e4e7ed;
  --gray-300: #dcdfe6;
  --gray-400: #c0c4cc;
  --gray-500: #909399;
  --gray-600: #606266;
  --gray-700: #303133;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  
  --sidebar-width: 250px;
  --header-height: 64px;
  --border-radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --transition: all 0.2s ease;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--gray-50);
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--primary-hover);
}

/* ========== Logo (matching frontend) ========== */
.nova-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nova-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  flex-shrink: 0;
}
.nova-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}

/* ========== Layout ========== */
.app-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: var(--sidebar-width);
  background: var(--nav-dark);
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.sidebar-logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.sidebar-menu {
  flex: 1;
  padding: 12px 0;
  overflow-y: auto;
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: var(--transition);
  border-left: 3px solid transparent;
  font-size: 14px;
  font-weight: 500;
}
.menu-item:hover {
  background: var(--nav-hover);
  color: #fff;
}
.menu-item.active {
  background: var(--nav-hover);
  color: #fff;
  border-left-color: var(--primary);
}
.menu-item .menu-icon {
  width: 22px;
  margin-right: 12px;
  text-align: center;
  font-size: 16px;
  opacity: 0.9;
}

.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  background: var(--gray-50);
}

.header {
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.page-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--gray-900);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--border-radius);
  transition: var(--transition);
}
.user-info:hover {
  background: var(--gray-100);
}
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
}
.user-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  padding: 8px 0;
  display: none;
  z-index: 100;
  margin-top: 4px;
}
.dropdown-menu.show {
  display: block;
}
.dropdown-item {
  padding: 10px 16px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--gray-700);
  font-size: 14px;
}
.dropdown-item:hover {
  background: var(--gray-100);
  color: var(--gray-900);
}
.dropdown-item.danger {
  color: var(--danger);
}
.dropdown-item.danger:hover {
  background: var(--danger-light);
}

.content-area {
  padding: 24px 28px;
}

/* ========== Cards ========== */
.card {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}
.card-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
}
.card-body {
  padding: 20px 24px;
}

/* ========== Buttons (matching frontend Get Quote style) ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover:not(:disabled) {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(25,118,210,0.3);
}

.btn-success {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}
.btn-success:hover:not(:disabled) {
  background: #256628;
  border-color: #256628;
}

.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover:not(:disabled) {
  background: #b71c1c;
  border-color: #b71c1c;
}

.btn-default {
  background: #fff;
  color: var(--gray-700);
  border-color: var(--gray-300);
}
.btn-default:hover:not(:disabled) {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--primary);
}

.btn-sm {
  padding: 5px 12px;
  font-size: 13px;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary);
  padding: 4px 8px;
  font-size: 13px;
  cursor: pointer;
}
.btn-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}
.btn-link.danger {
  color: var(--danger);
}
.btn-link.danger:hover {
  color: #b71c1c;
}

/* ========== Table ========== */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  vertical-align: middle;
}
.data-table th {
  background: var(--gray-50);
  font-weight: 600;
  font-size: 13px;
  color: var(--gray-600);
  white-space: nowrap;
}
.data-table tbody tr:hover {
  background: var(--gray-50);
}
.data-table .checkbox-col {
  width: 44px;
  text-align: center;
}
.data-table .actions-col {
  white-space: nowrap;
  width: 140px;
}

.data-table .product-cell {
  max-width: 220px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

/* ========== Badges ========== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-green { background: var(--success-light); color: var(--success); }
.badge-red { background: var(--danger-light); color: var(--danger); }
.badge-yellow { background: var(--warning-light); color: var(--warning); }
.badge-blue { background: var(--primary-light); color: var(--primary); }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }
.badge-cyan { background: var(--info-light); color: var(--info); }

/* ========== Forms ========== */
.form-group {
  margin-bottom: 18px;
}
.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25,118,210,0.1);
}
.form-control:disabled {
  background: var(--gray-100);
  cursor: not-allowed;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23909399' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 36px;
}

textarea.form-control {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group {
  flex: 1;
}

.form-help {
  margin-top: 4px;
  font-size: 12px;
  color: var(--gray-500);
}

/* ========== Modal ========== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10,36,99,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.fade-out {
  animation: fadeOut 0.2s ease forwards;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s ease;
}
.modal-sm { width: 420px; }
.modal-md { width: 580px; }
.modal-lg { width: 760px; }
.modal-xl { width: 960px; }

.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-header h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--gray-400);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: var(--transition);
}
.modal-close:hover {
  background: var(--gray-100);
  color: var(--gray-600);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ========== Toast ========== */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  animation: slideInRight 0.3s ease;
}
.toast-container.fade-out {
  animation: slideOutRight 0.3s ease forwards;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--info);
  min-width: 300px;
}
.toast-success { border-left-color: var(--success); }
.toast-success .toast-icon { color: var(--success); }
.toast-error { border-left-color: var(--danger); }
.toast-error .toast-icon { color: var(--danger); }
.toast-warning { border-left-color: var(--warning); }
.toast-warning .toast-icon { color: var(--warning); }
.toast-info { border-left-color: var(--info); }
.toast-info .toast-icon { color: var(--info); }

.toast-icon {
  font-size: 18px;
  font-weight: bold;
}
.toast-message {
  font-size: 14px;
  color: var(--gray-700);
}

/* ========== Pagination ========== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.pagination-info {
  font-size: 13px;
  color: var(--gray-500);
}
.pagination-buttons {
  display: flex;
  gap: 4px;
}
.pagination-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--gray-300);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  color: var(--gray-700);
  transition: var(--transition);
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--primary);
}
.pagination-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ========== Toolbar ========== */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  width: 260px;
  padding: 9px 12px 9px 38px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23909399' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM15.5 15.5l-2.5-2.5'/%3e%3c/svg%3e");
  background-position: left 12px center;
  background-repeat: no-repeat;
  background-size: 16px;
  transition: var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(25,118,210,0.1);
}

.filter-select {
  min-width: 140px;
  padding: 9px 36px 9px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23909399' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 10px center;
  background-repeat: no-repeat;
  background-size: 16px;
  cursor: pointer;
}

.batch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--primary-light);
  border-radius: 6px;
  font-size: 13px;
  color: var(--primary);
}
.batch-actions.hidden {
  display: none;
}

/* ========== Login Page (matching frontend hero style) ========== */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0a2463 0%, #1a4a9e 50%, #1976d2 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.login-page::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(25,118,210,0.3) 0%, transparent 70%);
  border-radius: 50%;
}

.login-card {
  width: 100%;
  max-width: 440px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  padding: 40px;
  position: relative;
  z-index: 1;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .nova-logo {
  justify-content: center;
  margin-bottom: 12px;
}
.login-logo .nova-logo-text {
  color: var(--gray-900);
  font-size: 24px;
}
.login-logo .nova-logo-icon {
  width: 48px;
  height: 48px;
  font-size: 24px;
}
.login-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-900);
}
.login-logo p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--gray-500);
}

.login-form .form-group {
  margin-bottom: 20px;
}

.login-btn {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  margin-top: 8px;
  border-radius: 8px;
}

.login-demo {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
}
.login-demo-title {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  font-weight: 600;
}
.login-demo-accounts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.demo-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--gray-50);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
}
.demo-account:hover {
  background: var(--primary-light);
}
.demo-account-email {
  color: var(--primary);
  font-weight: 500;
}
.demo-account-role {
  color: var(--gray-500);
  font-size: 12px;
}

/* ========== Detail View ========== */
.detail-section {
  margin-bottom: 24px;
}
.detail-section:last-child {
  margin-bottom: 0;
}
.detail-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.detail-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.detail-label {
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}
.detail-value {
  font-size: 14px;
  color: var(--gray-800);
  font-weight: 500;
}

.detail-message {
  padding: 14px;
  background: var(--gray-50);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--gray-700);
  white-space: pre-wrap;
  border-left: 3px solid var(--primary);
}

/* ========== Reply Area ========== */
.reply-area {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}

/* ========== Discount / Cart ========== */
.discount-section {
  background: var(--gray-50);
  border-radius: var(--border-radius);
  padding: 20px;
  margin-bottom: 20px;
}
.discount-input-group {
  display: flex;
  gap: 10px;
}
.discount-input-group .form-control {
  flex: 1;
}

.discount-result {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
}
.discount-result.success {
  background: var(--success-light);
  color: var(--success);
}
.discount-result.error {
  background: var(--danger-light);
  color: var(--danger);
}
.discount-result.warning {
  background: var(--warning-light);
  color: var(--warning);
}

.cart-summary {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14px;
  color: var(--gray-600);
}
.summary-row.total {
  border-top: 2px solid var(--gray-200);
  margin-top: 10px;
  padding-top: 18px;
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
}
.summary-row.discount {
  color: var(--success);
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 20px;
  border-radius: 8px;
}

/* ========== Quantity Control ========== */
.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  overflow: hidden;
}
.qty-btn {
  width: 32px;
  height: 32px;
  border: none;
  background: var(--gray-50);
  cursor: pointer;
  font-size: 16px;
  color: var(--gray-600);
  transition: var(--transition);
}
.qty-btn:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.qty-input {
  width: 50px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--gray-300);
  border-right: 1px solid var(--gray-300);
  text-align: center;
  font-size: 14px;
  outline: none;
}

/* ========== Animations ========== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}

/* ========== Loading Spinner ========== */
.loading-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ========== Empty State ========== */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-400);
}
.empty-state-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.5;
}
.empty-state-text {
  font-size: 14px;
}

/* ========== Checkbox ========== */
.checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary);
}

/* ========== Auth Required ========== */
.auth-required {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  color: var(--gray-500);
}
.auth-required-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.auth-required-text {
  font-size: 16px;
  margin-bottom: 20px;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-content {
    margin-left: 0;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100%;
  }
  .content-area {
    padding: 16px;
  }
}

/* Add/Edit News content textarea: center & full width */
#add_news_content,
#edit_news_content {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
}
