/* Custom Premium Design System - Warung SantriPlus */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.85);
  --bg-input: #1e293b;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #10b981;
  --primary-hover: #059669;
  --primary-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --danger: #ef4444;
  --warning: #f59e0b;
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
  --glass-bg: rgba(15, 23, 42, 0.75);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
  --font-sans: 'Plus Jakarta Sans', sans-serif;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* Glassmorphism & Navbar */
.navbar-custom {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.brand-gradient {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Card Styling */
.card-custom {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-custom:hover {
  box-shadow: var(--shadow-lg);
}

/* Buttons */
.btn-primary-gradient {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 20px;
  transition: all 0.2s ease;
}

.btn-primary-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
  color: #fff;
}

/* POS Specific Styling */
.pos-product-card {
  cursor: pointer;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.pos-product-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.15);
}

.pos-product-card img {
  height: 120px;
  object-fit: cover;
  width: 100%;
}

.badge-stok {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(4px);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Table styling */
.table-custom {
  color: var(--text-main);
}
.table-custom th {
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.table-custom td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

/* Sidebar Nav */
.sidebar-link {
  color: var(--text-muted);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.sidebar-link:hover, .sidebar-link.active {
  color: #fff;
  background: rgba(16, 185, 129, 0.15);
  border-left: 3px solid var(--primary);
}

/* Thermal Struk Printable Layout */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
  }
  .no-print {
    display: none !important;
  }
  .struk-container {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
  }
}
