/* =============================================
   Amore Cioccolato - Brand Styling (Red, Black, White)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800;900&family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  --red: #E63946;
  --red-dark: #C92A35;
  --red-light: #FF5C6A;
  --red-glow: rgba(230, 57, 70, 0.45);
  
  --black: #080808;
  --black-chalk: #0F0F0F;
  --black-card: #151515;
  --black-surface: #1E1E1E;
  --black-border: #282828;
  
  --white: #FFFFFF;
  --white-muted: #E0E0E0;
  --white-dim: #9E9E9E;
  
  --gold: #FFC045;
  --gold-glow: rgba(255, 192, 69, 0.2);
  
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Poppins', sans-serif;
  
  --radius: 20px;
  --radius-sm: 12px;
  --radius-xl: 32px;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
  --shadow-red: 0 0 25px var(--red-glow);
  --shadow-gold: 0 0 20px var(--gold-glow);
  --glass: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--black);
  background-image: 
    radial-gradient(at 10% 20%, rgba(230, 57, 70, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 80%, rgba(230, 57, 70, 0.03) 0px, transparent 50%);
  background-attachment: fixed;
  color: var(--white);
  font-family: var(--font-ar);
  direction: rtl;
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--black);
}
::-webkit-scrollbar-thumb {
  background: var(--black-border);
  border-radius: 10px;
  border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--red);
}

img {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: var(--font-ar);
  border: none;
  outline: none;
  background: none;
  transition: var(--transition);
}

input, textarea, select {
  font-family: var(--font-ar);
  outline: none;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

/* Helper Classes */
.hidden { display: none !important; }
.text-red { color: var(--red) !important; }
.text-white { color: var(--white) !important; }
.text-dim { color: var(--white-dim) !important; }
.font-en { font-family: var(--font-en); direction: ltr; display: inline-block; }
.shadow-neon { box-shadow: var(--shadow-red); }

/* Animation Keyframes */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulseHeart {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px var(--red-glow)); }
  35% { transform: scale(1.15); filter: drop-shadow(0 0 8px var(--red)); }
  70% { transform: scale(1); filter: drop-shadow(0 0 2px var(--red-glow)); }
}
@keyframes shine {
  0% { left: -100%; }
  100% { left: 100%; }
}

.animate-fade {
  animation: fadeIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* =============================================
   Client Menu Page (index.html)
   ============================================= */

/* SVG Brand Logo */
.brand-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 5px;
}
.brand-logo-svg {
  width: 65px;
  height: 65px;
  filter: drop-shadow(0 0 4px rgba(230, 57, 70, 0.3));
}
.logo-heart {
  transform-origin: 50px 48px;
  animation: pulseHeart 1.8s infinite ease-in-out;
}

/* Menu App Header */
.app-header {
  text-align: center;
  padding: 40px 20px 20px 20px;
  position: relative;
  background: linear-gradient(to bottom, var(--black), transparent);
}
.app-header h1 {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--white);
  margin-top: 10px;
  line-height: 1.1;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.app-header .slogan {
  font-family: var(--font-ar);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--red);
  margin-top: 5px;
  text-transform: uppercase;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.slogan::before, .slogan::after {
  content: '';
  width: 15px;
  height: 1.5px;
  background-color: var(--red);
  display: inline-block;
}

/* Top Sticky Controls */
.menu-controls {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.75);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 15px 0;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.controls-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Search Bar */
.search-container {
  position: relative;
  width: 100%;
}
.search-input {
  width: 100%;
  padding: 14px 45px 14px 20px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  background: rgba(21, 21, 21, 0.8);
  border: 1.5px solid var(--black-border);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.search-input:focus {
  border-color: var(--red);
  background: var(--black-card);
  box-shadow: 0 0 15px rgba(230, 57, 70, 0.15);
}
.search-icon {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: var(--white-dim);
  font-size: 1.1rem;
  pointer-events: none;
}

/* Category Filter Bar */
.categories-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  user-select: none;
  scrollbar-width: none; /* Firefox */
  cursor: grab;
}
.categories-tabs.active-drag {
  cursor: grabbing;
}
.categories-tabs::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.category-tab-btn {
  padding: 10px 22px;
  background: rgba(21, 21, 21, 0.7);
  color: var(--white-muted);
  border: 1.5px solid var(--black-border);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  -webkit-user-drag: none;
}
.category-tab-btn i, .category-tab-btn span.cat-icon {
  font-size: 1.1rem;
}
.category-tab-btn:hover {
  background: rgba(230, 57, 70, 0.05);
  border-color: rgba(230, 57, 70, 0.3);
  color: var(--white);
}
.category-tab-btn.active {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
  transform: translateY(-2px);
}

/* Menu Items Section */
.menu-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 60px 20px;
}

.category-group {
  margin-bottom: 45px;
}

.category-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--black-border);
  padding-bottom: 8px;
}
.category-title span.cat-icon {
  color: var(--red);
  background: rgba(230, 57, 70, 0.1);
  padding: 6px;
  border-radius: var(--radius-sm);
}

/* Grid layout */
.items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (max-width: 580px) {
  .items-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

/* Item Card */
.item-card {
  background: linear-gradient(135deg, var(--black-card) 0%, rgba(21, 21, 21, 0.8) 100%);
  border: 1px solid var(--black-border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  cursor: pointer;
  height: 100%;
}

.item-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 57, 70, 0.4);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5), 0 0 15px rgba(230, 57, 70, 0.1);
}

/* Image Container */
.card-img-wrapper {
  width: 100%;
  padding-top: 75%; /* 4:3 Aspect Ratio */
  position: relative;
  overflow: hidden;
  background-color: var(--black-surface);
}

.card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.item-card:hover .card-img {
  transform: scale(1.08);
}

/* Price Tag */
.price-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: rgba(8, 8, 8, 0.8);
  border: 1px solid var(--red);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 50px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 10;
}
.price-currency {
  font-size: 0.7rem;
  color: var(--red);
  font-family: var(--font-ar);
  font-weight: 500;
}

/* Card Body */
.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-ar {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
}

.card-title-en {
  font-family: var(--font-en);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white-dim);
  margin-top: 3px;
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

.card-desc {
  font-size: 0.8rem;
  color: var(--white-dim);
  margin-top: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em; /* fixed height for 2 lines */
}

/* View Details Action Indicator */
.card-action {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
  color: var(--red);
  font-size: 0.85rem;
  font-weight: 700;
  align-items: center;
  gap: 5px;
  opacity: 0.7;
  transition: var(--transition);
}
.item-card:hover .card-action {
  opacity: 1;
  transform: translateX(-4px);
}

/* Product Detail Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--glass);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 30px rgba(230, 57, 70, 0.15);
  transform: scale(0.9);
  transition: transform 0.3s var(--glass);
  position: relative;
}
.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header-img {
  width: 100%;
  padding-top: 65%;
  position: relative;
}
.modal-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  z-index: 20;
}
.modal-close-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.modal-body {
  padding: 30px;
}
.modal-price-tag {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid var(--red);
  color: var(--white);
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
}
.modal-title-ar {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
}
.modal-title-en {
  font-family: var(--font-en);
  font-size: 0.95rem;
  color: var(--white-dim);
  margin-top: 5px;
  margin-bottom: 15px;
  text-transform: capitalize;
}
.modal-description {
  font-size: 0.9rem;
  color: var(--white-muted);
  line-height: 1.6;
  border-top: 1px solid var(--black-border);
  padding-top: 15px;
}

/* Footer & Branches Layout */
.app-footer {
  background: linear-gradient(to top, #000 0%, var(--black-chalk) 100%);
  padding: 50px 20px;
  border-top: 1.5px solid var(--black-border);
  text-align: center;
}

.footer-content {
  max-width: 900px;
  margin: 0 auto;
}

.branches-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 15px;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.branches-title i {
  color: var(--red);
}

.branches-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
}
.branch-tag {
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}
.branch-tag:hover {
  border-color: var(--red);
  color: var(--white);
  background: rgba(230, 57, 70, 0.05);
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}
.social-btn {
  width: 45px;
  height: 45px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}
.social-btn:hover {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
  box-shadow: var(--shadow-red);
  transform: translateY(-3px);
}

.copyrights {
  font-size: 0.75rem;
  color: var(--white-dim);
  border-top: 1px solid rgba(255,255,255,0.03);
  padding-top: 20px;
}

/* =============================================
   Administrative Dashboard (dashboard.html)
   ============================================= */

/* Login Card Layout */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  background-image: 
    radial-gradient(circle at center, rgba(230, 57, 70, 0.08) 0px, transparent 65%);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--black-card);
  border: 1.5px solid var(--black-border);
  border-radius: var(--radius-xl);
  padding: 40px 30px;
  box-shadow: var(--shadow), 0 0 30px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.login-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, var(--red-dark), var(--red), var(--red-light));
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
}
.login-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 10px;
}
.login-header p {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 5px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white-muted);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: #111;
  border: 1.5px solid var(--black-border);
  color: var(--white);
  font-size: 0.95rem;
}
.form-control:focus {
  border-color: var(--red);
  background: var(--black-card);
  box-shadow: 0 0 10px rgba(230, 57, 70, 0.1);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  border-radius: var(--radius-sm);
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: var(--shadow-red);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
}
.btn-primary:active {
  transform: translateY(0);
}

.login-error-msg {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  margin-top: 15px;
  background: rgba(230, 57, 70, 0.1);
  padding: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(230, 57, 70, 0.2);
}

/* Dashboard App Shell */
.db-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.db-sidebar {
  width: 260px;
  background: var(--black-card);
  border-left: 1.5px solid var(--black-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  z-index: 100;
  transition: var(--transition);
}

.db-sidebar-brand {
  padding: 25px;
  border-bottom: 1.5px solid var(--black-border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.db-sidebar-brand-title {
  font-family: var(--font-en);
  font-size: 1.15rem;
  font-weight: 800;
}
.db-sidebar-brand i {
  color: var(--red);
  font-size: 1.3rem;
}

.db-nav-list {
  list-style: none;
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.db-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  color: var(--white-muted);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
  width: 100%;
  text-align: right;
}
.db-nav-link i {
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}
.db-nav-link:hover {
  background: rgba(255,255,255,0.03);
  color: var(--white);
}
.db-nav-link.active {
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  font-weight: 700;
}

.db-logout-btn {
  margin: 15px;
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  color: var(--white-dim);
}
.db-logout-btn:hover {
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  border-color: rgba(230, 57, 70, 0.2);
}

/* Main Area */
.db-main {
  flex-grow: 1;
  margin-right: 260px;
  padding: 30px;
  min-height: 100vh;
}

@media (max-width: 900px) {
  .db-sidebar {
    transform: translateX(100%);
  }
  .db-sidebar.active {
    transform: translateX(0);
  }
  .db-main {
    margin-right: 0;
    padding: 20px;
  }
  .db-hamburger {
    display: flex !important;
  }
}

/* Header bar */
.db-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1.5px solid var(--black-border);
}
.db-title h2 {
  font-size: 1.6rem;
  font-weight: 800;
}
.db-title p {
  font-size: 0.85rem;
  color: var(--white-dim);
  margin-top: 3px;
}

.db-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--black-card);
  border: 1px solid var(--black-border);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.btn-sm-outline {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--black-border);
  color: var(--white-muted);
  font-weight: 600;
  font-size: 0.85rem;
}
.btn-sm-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(230, 57, 70, 0.05);
}

/* Dashboard Overview Cards */
.db-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--black-card);
  border: 1.5px solid var(--black-border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.stat-info .stat-label {
  font-size: 0.85rem;
  color: var(--white-dim);
  font-weight: 600;
}
.stat-info .stat-value {
  font-family: var(--font-en);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  margin-top: 5px;
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

/* QR Code Showcase Card */
.db-grid-main {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
}
@media (max-width: 1024px) {
  .db-grid-main {
    grid-template-columns: 1fr;
  }
}

.db-panel-card {
  background: var(--black-card);
  border: 1.5px solid var(--black-border);
  border-radius: var(--radius);
  padding: 25px;
  margin-bottom: 25px;
}
.db-panel-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.db-panel-card h3 i {
  color: var(--red);
}

.qr-preview-box {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--black-surface);
  border-radius: var(--radius);
  border: 1px solid var(--black-border);
}
.qr-canvas-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-sm);
  display: inline-block;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}
.qr-canvas-wrapper canvas {
  display: block;
}

/* Category & Product Table Styles */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--black-border);
}
.db-table {
  width: 100%;
  border-collapse: collapse;
  text-align: right;
  font-size: 0.9rem;
}
.db-table th {
  background: var(--black-surface);
  color: var(--white);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 2px solid var(--black-border);
}
.db-table td {
  padding: 14px 18px;
  border-bottom: 1.5px solid var(--black-border);
  color: var(--white-muted);
  vertical-align: middle;
}
.db-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.table-img {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1.5px solid var(--black-border);
}

.btn-actions {
  display: flex;
  gap: 8px;
}
.btn-action-edit {
  width: 32px;
  height: 32px;
  background: rgba(255, 192, 69, 0.1);
  color: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-action-edit:hover {
  background: var(--gold);
  color: var(--black);
}
.btn-action-delete {
  width: 32px;
  height: 32px;
  background: rgba(230, 57, 70, 0.1);
  color: var(--red);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.btn-action-delete:hover {
  background: var(--red);
  color: var(--white);
  box-shadow: var(--shadow-red);
}

/* Modals / Popups for Adding/Editing items */
.db-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--glass);
}
.db-popup-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.db-popup-content {
  background: var(--black-card);
  border: 1.5px solid var(--black-border);
  width: 100%;
  max-width: 550px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transform: scale(0.9);
  transition: transform 0.3s var(--glass);
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}
.db-popup-overlay.active .db-popup-content {
  transform: scale(1);
}

.db-popup-header {
  padding: 20px 25px;
  background: var(--black-surface);
  border-bottom: 1.5px solid var(--black-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.db-popup-header h4 {
  font-size: 1.15rem;
  font-weight: 800;
}
.db-popup-close {
  font-size: 1.2rem;
  color: var(--white-dim);
}
.db-popup-close:hover {
  color: var(--red);
}

.db-popup-content form {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.db-popup-body {
  padding: 25px;
  overflow-y: auto;
  flex-grow: 1;
  min-height: 0;
}

.db-popup-footer {
  padding: 15px 25px;
  background: var(--black-surface);
  border-top: 1.5px solid var(--black-border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-secondary {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--black-surface);
  border: 1.5px solid var(--black-border);
  color: var(--white-muted);
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.02);
  color: var(--white);
}

/* Image Upload Preview Design */
.image-upload-wrapper {
  border: 2px dashed var(--black-border);
  padding: 20px;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  background: rgba(255,255,255,0.01);
  transition: var(--transition);
  position: relative;
}
.image-upload-wrapper:hover {
  border-color: var(--red);
  background: rgba(230, 57, 70, 0.02);
}
.image-upload-preview {
  max-width: 140px;
  max-height: 140px;
  margin: 10px auto 0 auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--black-border);
  display: none;
}
.image-upload-wrapper i {
  font-size: 2rem;
  color: var(--white-dim);
  margin-bottom: 8px;
}
.image-upload-wrapper input[type="file"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

/* Info Notifications */
.db-alert {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: fadeIn 0.3s ease;
}
.db-alert-success {
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}
.db-alert-error {
  background: rgba(230, 57, 70, 0.1);
  border: 1px solid rgba(230, 57, 70, 0.2);
  color: var(--red);
}
