/* ==========================================================================
   CAFÉFLOW — Modern Blue Café Design System
   ========================================================================== */

:root {
  --primary-blue: #1D4ED8;
  --primary-hover: #1E3A8A;
  --dark-blue: #0F172A;
  --light-blue: #EFF6FF;
  --accent-blue: #2563EB;
  --bg-main: #F8FAFC;
  --card-bg: #FFFFFF;
  --text-main: #0F172A;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;
  --border-color: #E2E8F0;
  
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;
  --info: #06B6D4;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(37, 99, 235, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-glow: 0 0 20px rgba(37, 99, 235, 0.25);

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-main);
  color: var(--text-main);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* Typography & Links */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: all 0.2s ease;
}
a:hover {
  color: var(--primary-hover);
}

/* Modern Card */
.cafeflow-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cafeflow-card:hover {
  box-shadow: var(--shadow-md);
}
.cafeflow-card .card-header {
  background: transparent;
  border-bottom: 1px solid var(--border-color);
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cafeflow-card .card-body {
  padding: 1.5rem;
}

/* KPI Stat Cards */
.stat-widget {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
.stat-widget:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37, 99, 235, 0.2);
}
.stat-widget .stat-icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--light-blue); color: var(--primary-blue); }
.stat-icon.green  { background: #ECFDF5; color: var(--success); }
.stat-icon.amber  { background: #FFFBEB; color: var(--warning); }
.stat-icon.rose   { background: #FEF2F2; color: var(--danger); }
.stat-icon.indigo { background: #EEF2FF; color: #6366F1; }

.stat-widget .stat-info h6 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}
.stat-widget .stat-info .stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}
.stat-widget .stat-trend {
  font-size: 0.75rem;
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Primary Button */
.btn-cafeflow {
  background: var(--primary-blue);
  color: #FFFFFF;
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
  transition: all 0.2s ease;
}
.btn-cafeflow:hover, .btn-cafeflow:focus {
  background: var(--primary-hover);
  color: #FFFFFF;
  box-shadow: 0 4px 8px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}
.btn-cafeflow-light {
  background: var(--light-blue);
  color: var(--primary-blue);
  font-weight: 600;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(37, 99, 235, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}
.btn-cafeflow-light:hover {
  background: #DBEAFE;
  color: var(--dark-blue);
}

/* Badges */
.badge-soft-primary { background: var(--light-blue); color: var(--primary-blue); font-weight: 600; border-radius: 20px; padding: 0.35rem 0.75rem; }
.badge-soft-success { background: #ECFDF5; color: var(--success); font-weight: 600; border-radius: 20px; padding: 0.35rem 0.75rem; }
.badge-soft-warning { background: #FFFBEB; color: var(--warning); font-weight: 600; border-radius: 20px; padding: 0.35rem 0.75rem; }
.badge-soft-danger  { background: #FEF2F2; color: var(--danger); font-weight: 600; border-radius: 20px; padding: 0.35rem 0.75rem; }
.badge-soft-dark    { background: #F1F5F9; color: var(--text-secondary); font-weight: 600; border-radius: 20px; padding: 0.35rem 0.75rem; }

/* AdminLTE Navigation Customization */
.main-sidebar {
  background: #0F172A !important;
  box-shadow: 2px 0 10px rgba(0,0,0,0.05);
}
.brand-link {
  border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  padding: 1rem 1.25rem !important;
  background: #0B1120 !important;
}
.brand-link .brand-image-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  margin-right: 0.75rem;
  box-shadow: 0 2px 8px rgba(30, 58, 138, 0.4);
}
.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active {
  background: linear-gradient(135deg, #1E3A8A 0%, #1D4ED8 100%) !important;
  box-shadow: 0 3px 12px rgba(29, 78, 216, 0.35) !important;
  border-radius: var(--radius-sm);
  color: #FFFFFF !important;
  font-weight: 600;
}
.nav-sidebar .nav-link {
  border-radius: var(--radius-sm);
  margin-bottom: 2px;
  color: #94A3B8;
  font-size: 0.9rem;
}
.nav-sidebar .nav-link:hover {
  background: rgba(255,255,255,0.06);
  color: #FFFFFF;
}
.nav-header {
  color: #64748B !important;
  font-size: 0.72rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  padding: 0.75rem 1rem 0.35rem 1rem !important;
}

/* Modern Top Navbar */
.main-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm);
}

/* Modern Data Table */
.cafeflow-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.cafeflow-table th {
  background: #F8FAFC;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}
.cafeflow-table td {
  padding: 1rem;
  vertical-align: middle;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.875rem;
  color: var(--text-main);
}
.cafeflow-table tbody tr:hover {
  background-color: #F8FAFC;
}

/* Responsive Containers */
@media (max-width: 768px) {
  .stat-widget {
    padding: 1rem;
    gap: 0.75rem;
  }
  .stat-widget .stat-icon {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
  .stat-widget .stat-info .stat-value {
    font-size: 1.25rem;
  }
}
