/* ==========================================
   TOKO 2 BERSAUDARA - DESIGN SYSTEM & STYLES
   ========================================== */

/* Theme Variables */
:root {
  --shopee-orange: #EE4D2D;
  --shopee-orange-hover: #D73C1E;
  --shopee-orange-light: rgba(238, 77, 45, 0.1);
  
  --bg-color: #F8F9FA;
  --panel-bg: #FFFFFF;
  --text-color: #2D3436;
  --text-muted: #7F8C8D;
  --border-color: #E2E8F0;
  --hover-bg: #F1F5F9;
  
  /* Status Colors */
  --status-grey: #95A5A6;
  --status-yellow: #F1C40F;
  --status-green: #2ECC71;
  --status-blue: #3498DB;
  --status-red: #E74C3C;

  /* Font weight and radius */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --transition-speed: 0.25s;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.05);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
}

/* Dark Mode Variables */
[data-theme="dark"] {
  --bg-color: #0F172A;
  --panel-bg: #1E293B;
  --text-color: #F1F5F9;
  --text-muted: #94A3B8;
  --border-color: #334155;
  --hover-bg: #334155;
  
  --shopee-orange-light: rgba(238, 77, 45, 0.25);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.15);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.35);
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

/* Utility Classes */
.text-muted { color: var(--text-muted); }
.text-green { color: var(--status-green) !important; }
.text-red { color: var(--status-red) !important; }
.text-blue { color: var(--status-blue) !important; }
.text-yellow { color: var(--status-yellow) !important; }
.text-center { text-align: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.no-padding { padding: 0 !important; }

/* Status Colors & Backgrounds */
.bg-status-grey { background-color: var(--status-grey) !important; color: white; }
.bg-status-yellow { background-color: var(--status-yellow) !important; color: #2D3436; }
.bg-status-green { background-color: var(--status-green) !important; color: white; }
.bg-status-blue { background-color: var(--status-blue) !important; color: white; }
.bg-status-red { background-color: var(--status-red) !important; color: white; }

.badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
}

/* Custom Buttons */
.btn {
  font-family: 'Outfit', sans-serif;
  padding: 8px 16px;
  border-radius: var(--border-radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-speed);
}

.btn-primary {
  background-color: var(--shopee-orange);
  color: white;
}
.btn-primary:hover {
  background-color: var(--shopee-orange-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--hover-bg);
  color: var(--text-color);
  border-color: var(--border-color);
}
.btn-secondary:hover {
  background-color: var(--border-color);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-color);
  color: var(--text-color);
}
.btn-outline:hover, .btn-outline.active {
  background-color: var(--shopee-orange-light);
  border-color: var(--shopee-orange);
  color: var(--shopee-orange);
}

.btn-large {
  padding: 12px 24px;
  font-size: 0.95rem;
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* ==================== LOGIN PAGE ==================== */
.login-page {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: 
    radial-gradient(circle at 10% 20%, rgba(238, 77, 45, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.1) 0%, transparent 40%),
    var(--bg-color);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
  transition: all var(--transition-speed);
}

.login-page.active {
  display: flex;
}

.login-card {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  width: 100%;
  max-width: 400px;
  padding: 40px 30px;
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.03),
    0 10px 50px rgba(238, 77, 45, 0.08);
  position: relative;
  overflow: hidden;
  transition: background var(--transition-speed), border-color var(--transition-speed);
}

[data-theme="dark"] .login-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 4px 30px rgba(0, 0, 0, 0.2),
    0 10px 50px rgba(0, 0, 0, 0.3);
}

.theme-toggle-login {
  position: absolute;
  top: 24px;
  right: 24px;
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.logo-circle {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FF6A3D 0%, #EE4D2D 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 16px;
  box-shadow: 
    0 8px 20px rgba(238, 77, 45, 0.35),
    0 0 0 6px rgba(238, 77, 45, 0.08);
  transform: rotate(-5deg);
  transition: transform 0.3s;
}

.login-card:hover .logo-circle {
  transform: rotate(0deg) scale(1.05);
}

.logo-icon {
  color: white;
  width: 36px;
  height: 36px;
}

.login-header h1 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-color);
  letter-spacing: -0.5px;
}

.tagline {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.welcome-text {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: var(--text-color);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-wrapper i {
  position: absolute;
  left: 16px;
  color: var(--text-muted);
  width: 18px;
  height: 18px;
  transition: color 0.2s;
  pointer-events: none;
}

.input-wrapper input {
  font-family: 'Outfit', sans-serif;
  width: 100%;
  padding: 14px 16px 14px 48px;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  background: var(--panel-bg);
  color: var(--text-color);
  outline: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition-speed);
}

.input-wrapper input:focus {
  border-color: var(--shopee-orange);
  background: var(--panel-bg);
  box-shadow: 0 0 0 4px var(--shopee-orange-light);
}

.input-wrapper input:focus + i {
  color: var(--shopee-orange);
}

/* Override primary button specifically on login form */
#login-form .btn-primary {
  background: linear-gradient(135deg, #FF6A3D 0%, #EE4D2D 100%);
  border: none;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.95rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(238, 77, 45, 0.25);
  margin-top: 10px;
  transition: all 0.3s;
}

#login-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 77, 45, 0.4);
}

#login-form .btn-primary:active {
  transform: translateY(0);
}

.login-footer {
  margin-top: 24px;
  text-align: center;
}

.forgot-password {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

.forgot-password:hover {
  color: var(--shopee-orange);
  text-decoration: none;
}


/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-speed);
}

.theme-toggle-btn:hover {
  background-color: var(--border-color);
}

/* ==================== MAIN LAYOUT ==================== */
.app-wrapper {
  display: flex;
  min-height: 100vh;
  position: relative;
}

/* Sidebar Styling */
.sidebar {
  width: 260px;
  background-color: var(--panel-bg);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.sidebar-header {
  padding: 24px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

.logo-circle-sm {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--shopee-orange);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
}

.logo-circle-sm i {
  width: 20px;
  height: 20px;
}

.sidebar-title-wrapper h2 {
  font-size: 1.05rem;
  font-weight: 700;
}

.badge-online {
  font-size: 0.65rem;
  color: var(--shopee-orange);
  font-weight: 600;
  text-transform: uppercase;
}

/* Nav Menu */
.sidebar-nav {
  padding: 15px 12px;
  flex: 1;
  overflow-y: auto;
}

.nav-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
  gap: 12px;
  margin-bottom: 4px;
  transition: all var(--transition-speed);
  position: relative;
}

.nav-item i {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: color var(--transition-speed);
}

.nav-item:hover {
  background-color: var(--hover-bg);
}

.nav-item.active {
  background-color: var(--shopee-orange-light);
  color: var(--shopee-orange);
}

.nav-item.active i {
  color: var(--shopee-orange);
}

.badge-nav {
  position: absolute;
  right: 14px;
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 10px;
  background-color: var(--shopee-orange);
  color: white;
  font-weight: 600;
}

.badge-nav.badge-alert {
  background-color: var(--status-red);
}
.badge-nav.badge-warn {
  background-color: var(--status-yellow);
  color: #2D3436;
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 15px;
  border-top: 1px solid var(--border-color);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--hover-bg);
  color: var(--shopee-orange);
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid var(--border-color);
}

.user-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.username-display {
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.role-display {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.logout-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition-speed);
}
.logout-btn:hover {
  color: var(--status-red);
}

.system-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Content Container */
.content-container {
  margin-left: 260px;
  flex: 1;
  padding: 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.top-bar-left h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
}

.top-bar-left p {
  font-size: 0.85rem;
  margin-top: 2px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
}

.pulse-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--status-green);
  box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(46, 204, 113, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0);
  }
}

.date-display {
  font-size: 0.8rem;
  background-color: var(--panel-bg);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  font-weight: 500;
}

/* ==================== SUB-PAGES ==================== */
.sub-page {
  display: none;
}

.sub-page.active {
  display: block;
}

/* Cards & Panels */
.panel-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  overflow: hidden;
  transition: background-color var(--transition-speed), border-color var(--transition-speed);
}

.panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.panel-header h3 {
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-header h3 i {
  width: 18px;
  height: 18px;
  color: var(--shopee-orange);
}

.panel-body {
  padding: 20px;
}

/* Stats Cards Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.stat-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
}

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

.stat-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stat-icon-wrapper i {
  width: 24px;
  height: 24px;
  color: white;
}

.shopee-bg { background-color: var(--shopee-orange); }
.green-bg { background-color: var(--status-green); }
.blue-bg { background-color: var(--status-blue); }
.red-bg { background-color: var(--status-red); }

.stat-data {
  display: flex;
  flex-direction: column;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-color);
  margin: 2px 0;
}

.stat-trend {
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.stat-trend.green { color: var(--status-green); }
.stat-trend.yellow { color: var(--status-yellow); }

.stat-trend i {
  width: 10px;
  height: 10px;
}

/* Dashboard Grid Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Highlight Items */
.highlight-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px;
  border-radius: var(--border-radius-sm);
  background-color: var(--bg-color);
  transition: all var(--transition-speed);
}

.highlight-item.clickable {
  cursor: pointer;
}
.highlight-item.clickable:hover {
  background-color: var(--hover-bg);
  transform: translateX(4px);
}

.h-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.h-icon i {
  width: 18px;
  height: 18px;
}

.orange-light { background-color: var(--shopee-orange-light); color: var(--shopee-orange); }
.green-light { background-color: rgba(46, 204, 113, 0.1); color: var(--status-green); }
.red-light { background-color: rgba(231, 76, 60, 0.1); color: var(--status-red); }
.blue-light { background-color: rgba(52, 152, 219, 0.1); color: var(--status-blue); }

.h-text {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.h-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.h-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.arrow-right {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

/* Targets */
.target-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.target-item {
  display: flex;
  flex-direction: column;
}

.target-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.progress-bar-bg {
  width: 100%;
  height: 10px;
  background-color: var(--hover-bg);
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 5px;
}

.progress-orange { background-color: var(--shopee-orange); }
.progress-green { background-color: var(--status-green); }

.target-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Chart Container */
.chart-container-wrapper {
  position: relative;
  width: 100%;
  height: 280px;
}

/* Data Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.data-table th, .data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.data-table th {
  background-color: var(--hover-bg);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  transition: background-color var(--transition-speed);
}

.data-table tbody tr:hover {
  background-color: var(--hover-bg);
}

/* Packing Status Styles */
.status-select {
  padding: 6px 12px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  outline: none;
  cursor: pointer;
}

.status-select-grey { background-color: var(--hover-bg); color: var(--text-color); border: 1px solid var(--border-color); }
.status-select-yellow { background-color: var(--status-yellow); color: #2D3436; }
.status-select-green { background-color: var(--status-green); color: white; }
.status-select-blue { background-color: var(--status-blue); color: white; }
.status-select-red { background-color: var(--status-red); color: white; }

/* Filter Bar & Search */
.filter-bar {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 12px 20px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-size: 0.85rem;
  font-weight: 600;
}

.btn-group {
  display: flex;
  gap: 4px;
}

.search-section {
  margin-bottom: 20px;
}

.search-box-large {
  display: flex;
  align-items: center;
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 12px 20px;
  box-shadow: var(--shadow-sm);
}

.search-box-large i {
  color: var(--text-muted);
  width: 22px;
  height: 22px;
  margin-right: 12px;
}

.search-box-large input {
  font-family: 'Outfit', sans-serif;
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: var(--text-color);
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 6px 12px;
  width: 260px;
}

.search-box i {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.search-box input {
  font-family: 'Outfit', sans-serif;
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-color);
}

/* Packing Actions */
.packing-actions-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.status-legend {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.color-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

/* Product Cards Grid */
.product-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  display: flex;
  flex-direction: column;
}

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

.product-img-wrapper {
  position: relative;
  padding-bottom: 75%; /* 4:3 Aspect Ratio */
  background-color: var(--hover-bg);
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-img-wrapper i {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  color: var(--text-muted);
}

.product-stock-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.product-details {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.4;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-pricing {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  font-size: 0.85rem;
}

.price-box, .profit-box {
  display: flex;
  flex-direction: column;
}

.price-box .lbl, .profit-box .lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-box .val {
  font-weight: 700;
  color: var(--text-color);
}

.profit-box .val {
  font-weight: 700;
  color: var(--status-green);
}

.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-card-actions .btn {
  padding: 6px;
  font-size: 0.8rem;
  justify-content: center;
}

/* Gudang Sub-page styling */
.gudang-status-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-bottom: 24px;
}

.gudang-status-pill {
  border-radius: var(--border-radius);
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  box-shadow: var(--shadow-sm);
  color: white;
}

.green-pill { background-color: var(--status-green); }
.yellow-pill { background-color: var(--status-yellow); color: #2D3436; }
.red-pill { background-color: var(--status-red); }

.pill-number {
  font-size: 1.8rem;
  font-weight: 800;
}

.pill-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}

/* Laba Rugi Sub-page */
.profit-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
  margin-bottom: 24px;
}

.summary-card {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}

.summary-value {
  font-size: 1.3rem;
  font-weight: 700;
}

.highlight-profit {
  border: 2px solid var(--status-green);
  background-color: rgba(46, 204, 113, 0.05);
}

/* ==================== NOTIFICATIONS ==================== */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  width: 100%;
}

.notification-toast {
  background-color: var(--panel-bg);
  border-left: 4px solid var(--shopee-orange);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  transform: translateX(120%);
  animation: slideIn 0.3s forwards;
  transition: opacity 0.3s;
}

@keyframes slideIn {
  to { transform: translateX(0); }
}

.toast-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.toast-icon.green { color: var(--status-green); }
.toast-icon.yellow { color: var(--status-yellow); }
.toast-icon.red { color: var(--status-red); }

.toast-content {
  flex: 1;
}

.toast-message {
  font-size: 0.85rem;
  font-weight: 500;
}

.toast-close {
  background: transparent;
  border: none;
  font-size: 1.1rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
}

/* ==================== FLOATING ACTION BUTTON (FAB) ==================== */
.fab-wrapper {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.fab-trigger {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--shopee-orange);
  color: white;
  border: none;
  box-shadow: 0 4px 10px rgba(238, 77, 45, 0.4);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform var(--transition-speed);
}

.fab-trigger i {
  width: 24px;
  height: 24px;
  transition: transform var(--transition-speed);
}

.fab-wrapper.active .fab-trigger {
  transform: rotate(45deg);
}

.fab-options {
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.fab-wrapper.active .fab-options {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.fab-option-btn {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: 20px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-speed);
  color: var(--text-color);
}

.fab-option-btn:hover {
  background-color: var(--shopee-orange-light);
  border-color: var(--shopee-orange);
  color: var(--shopee-orange);
}

.fab-option-btn i {
  width: 14px;
  height: 14px;
}

/* ==================== MODAL POPUP ==================== */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 1050;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background-color: var(--panel-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalScale 0.25s forwards;
}

@keyframes modalScale {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-modal-btn {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-body {
  padding: 20px;
}

/* ==================== MOBILE AND BOTTOM NAVIGATION ==================== */
.mobile-bottom-nav {
  display: none;
}

.mobile-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.5);
  z-index: 95;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform var(--transition-speed) ease-in-out;
  }
  
  .sidebar.active {
    transform: translateX(0);
  }
  
  .mobile-sidebar-overlay.active {
    display: block;
  }
  
  .content-container {
    margin-left: 0;
    padding: 15px;
    padding-bottom: 90px; /* Space for bottom nav */
  }
  
  .mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--panel-bg);
    border-top: 1px solid var(--border-color);
    padding: 10px 0;
    z-index: 90;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
  }
  
  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    gap: 4px;
    flex: 1;
  }
  
  .mobile-nav-item i {
    width: 20px;
    height: 20px;
  }
  
  .mobile-nav-item.active {
    color: var(--shopee-orange);
  }
  
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .top-bar-right {
    width: 100%;
    justify-content: space-between;
  }
  
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .warehouse-grid {
    grid-template-columns: 1fr;
  }
  
  .gudang-status-bar {
    grid-template-columns: 1fr;
  }
  
  .fab-wrapper {
    bottom: 80px; /* Adjust for mobile bottom nav */
  }
}
