/* ============================================================
   SIPOPKENDI LIGHT THEME - Modern Futuristic Light Design
   Upgrade tampilan terang, modern, dan futuristik
   ============================================================ */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700&display=swap');

/* === ROOT VARIABLES - LIGHT THEME === */
:root {
  /* Background colors */
  --bg-primary:     #f8fafc;
  --bg-secondary:   #ffffff;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f1f5f9;
  --bg-sidebar:     linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
  
  /* Border colors */
  --border-color:   #e2e8f0;
  --border-light:   #f1f5f9;
  --border-accent:  #06b6d4;
  
  /* Accent colors - Modern & Vibrant */
  --accent-primary:  #0ea5e9;
  --accent-secondary:#8b5cf6;
  --accent-success:  #10b981;
  --accent-warning:  #f59e0b;
  --accent-danger:   #ef4444;
  --accent-cyan:     #06b6d4;
  --accent-purple:   #a855f7;
  --accent-pink:     #ec4899;
  
  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  --gradient-success:   linear-gradient(135deg, #10b981 0%, #34d399 100%);
  --gradient-sunset:    linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  
  /* Text colors */
  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;
  --text-white:     #ffffff;
  
  /* Layout */
  --sidebar-width:  260px;
  --header-height:  70px;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  
  /* Shadows - Modern & Soft */
  --shadow-sm:  0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md:  0 4px 16px rgba(15, 23, 42, 0.08);
  --shadow-lg:  0 10px 40px rgba(15, 23, 42, 0.12);
  --shadow-xl:  0 20px 60px rgba(15, 23, 42, 0.15);
  --shadow-colored: 0 8px 32px rgba(14, 165, 233, 0.2);
  
  /* Effects */
  --transition:     all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* === RESET & BASE === */
*, *::before, *::after { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
}

html, body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === MODERN SCROLLBAR === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { 
  background: var(--border-color); 
  border-radius: 10px; 
}
::-webkit-scrollbar-thumb:hover { 
  background: var(--accent-cyan); 
}

/* === LOGIN PAGE === */
.sipop-login-wrapper {
  min-height: 100vh;
  background: var(--gradient-primary);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sipop-login-wrapper::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(50px, 50px) rotate(10deg); }
}

.sipop-login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 10;
}

.sipop-login-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.sipop-login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.sipop-login-logo img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 12px rgba(14, 165, 233, 0.3));
}

.sipop-login-logo h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.sipop-login-logo p {
  font-size: 12px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

/* === FORM CONTROLS === */
.sipop-form-group { margin-bottom: 20px; }

.sipop-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.sipop-form-control {
  width: 100%;
  background: var(--bg-primary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: var(--transition);
  outline: none;
}

.sipop-form-control:focus {
  border-color: var(--accent-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

.sipop-form-control::placeholder { 
  color: var(--text-muted); 
}

.sipop-btn-primary {
  width: 100%;
  padding: 14px;
  background: var(--gradient-primary);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  margin-top: 12px;
  box-shadow: var(--shadow-colored);
}

.sipop-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.3);
}

.sipop-btn-primary:active {
  transform: translateY(0);
}

.sipop-alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  color: var(--accent-danger);
  font-size: 13px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* === LAYOUT STRUCTURE === */
.sipop-layout { 
  display: flex; 
  min-height: 100vh; 
  background: var(--bg-primary);
}

/* === SIDEBAR - Dark Accent === */
.sipop-sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-sidebar);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 100;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.sipop-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.sipop-sidebar-brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(6, 182, 212, 0.4));
}

.sipop-sidebar-brand-text .app-name {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: white;
  letter-spacing: 1px;
  line-height: 1.2;
}

.sipop-sidebar-brand-text .app-sub {
  display: block;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

/* Sidebar Navigation */
.sipop-nav-section {
  padding: 24px 0 8px;
}

.sipop-nav-section-title {
  padding: 0 20px 10px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.sipop-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
  border-left: 3px solid transparent;
  position: relative;
}

.sipop-nav-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  background: var(--accent-cyan);
  border-radius: 0 4px 4px 0;
  transition: var(--transition);
}

.sipop-nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.sipop-nav-item:hover::before {
  width: 4px;
  height: 100%;
}

.sipop-nav-item.active {
  color: white;
  background: rgba(6, 182, 212, 0.15);
  border-left-color: var(--accent-cyan);
  font-weight: 600;
}

.sipop-nav-item.active::before {
  width: 4px;
  height: 100%;
  background: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

.sipop-nav-item i { 
  width: 20px; 
  text-align: center; 
  font-size: 16px; 
  flex-shrink: 0; 
}

.sipop-sidebar-footer {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === MAIN CONTENT AREA === */
.sipop-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* === TOPBAR - Glass Effect === */
.sipop-topbar {
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: var(--shadow-sm);
}

.sipop-topbar-left { 
  display: flex; 
  align-items: center; 
  gap: 16px; 
}

.sipop-menu-toggle {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  font-size: 18px;
  transition: var(--transition);
  display: none;
  border-radius: var(--radius-sm);
}

.sipop-menu-toggle:hover { 
  color: var(--accent-primary);
  background: var(--bg-primary);
}

.sipop-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.sipop-topbar-right { 
  display: flex; 
  align-items: center; 
  gap: 20px; 
}

.sipop-topbar-time {
  font-size: 13px;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}

.sipop-user-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
}

.sipop-user-btn:hover {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.sipop-user-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-success);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { box-shadow: 0 0 0 4px rgba(16, 185, 129, 0); }
}

/* User Dropdown */
.sipop-user-dropdown {
  position: relative;
  display: inline-block;
}

.sipop-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 180px;
  z-index: 9999;
}

.sipop-dropdown-inner {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sipop-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
}

.sipop-dropdown-item:last-child {
  border-bottom: none;
}

.sipop-dropdown-item:hover {
  background: var(--bg-primary);
  color: var(--accent-primary);
  text-decoration: none;
}

.sipop-dropdown-item i {
  width: 18px;
  text-align: center;
}

/* === PAGE CONTENT === */
.sipop-content {
  padding: 32px;
  flex: 1;
}

.sipop-page-header {
  margin-bottom: 32px;
}

.sipop-page-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.sipop-page-header p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* === BREADCRUMB === */
.sipop-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding: 12px 18px;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.sipop-breadcrumb span { 
  color: var(--text-secondary);
  font-weight: 500;
}

.sipop-breadcrumb .sep { 
  color: var(--text-muted); 
}

.sipop-breadcrumb .current { 
  color: var(--accent-primary);
  font-weight: 600;
}

/* === STAT CARDS - Modern Gradient === */
.sipop-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.sipop-stat-card {
  background: white;
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sipop-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.sipop-stat-card.cyan::before { background: var(--gradient-primary); }
.sipop-stat-card.blue::before { background: var(--gradient-secondary); }
.sipop-stat-card.green::before { background: var(--gradient-success); }
.sipop-stat-card.orange::before { background: var(--gradient-sunset); }

.sipop-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.sipop-stat-card.cyan:hover { border-color: var(--accent-cyan); }
.sipop-stat-card.blue:hover { border-color: var(--accent-secondary); }
.sipop-stat-card.green:hover { border-color: var(--accent-success); }
.sipop-stat-card.orange:hover { border-color: var(--accent-warning); }

.sipop-stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  position: relative;
}

.sipop-stat-icon.cyan {
  background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.3);
}

.sipop-stat-icon.blue {
  background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.sipop-stat-icon.green {
  background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.sipop-stat-icon.orange {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  color: white;
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.sipop-stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 6px;
}

.sipop-stat-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

/* === CARDS / PANELS === */
.sipop-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.sipop-card:hover {
  box-shadow: var(--shadow-md);
}

.sipop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
}

.sipop-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sipop-card-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 20px;
  background: var(--gradient-primary);
  border-radius: 4px;
}

.sipop-card-body { 
  padding: 24px; 
}

/* === BUTTONS === */
.sipop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1;
}

.sipop-btn-sm { 
  padding: 7px 14px; 
  font-size: 12px; 
}

.sipop-btn-cyan {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.sipop-btn-cyan:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.4);
  text-decoration: none;
  color: white;
}

.sipop-btn-blue {
  background: var(--gradient-secondary);
  color: white;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.3);
}

.sipop-btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
  text-decoration: none;
  color: white;
}

.sipop-btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.3);
}

.sipop-btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
  text-decoration: none;
  color: white;
}

.sipop-btn-success {
  background: var(--gradient-success);
  color: white;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.sipop-btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
  text-decoration: none;
  color: white;
}

.sipop-btn-outline {
  background: white;
  border-color: var(--border-color);
  color: var(--text-primary);
}

.sipop-btn-outline:hover {
  border-color: var(--accent-primary);
  background: var(--bg-primary);
  color: var(--accent-primary);
  text-decoration: none;
}

/* === TABLES === */
.sipop-table-wrap { 
  overflow-x: auto; 
}

.sipop-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sipop-table thead tr {
  background: var(--bg-primary);
  border-bottom: 2px solid var(--border-color);
}

.sipop-table thead th {
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  text-align: left;
}

.sipop-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition-fast);
}

.sipop-table tbody tr:hover { 
  background: var(--bg-primary); 
}

.sipop-table tbody td {
  padding: 14px 16px;
  color: var(--text-secondary);
  vertical-align: middle;
}

.sipop-table tbody td:first-child { 
  color: var(--text-primary);
  font-weight: 600;
}

/* === BADGES === */
.sipop-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.sipop-badge-cyan {
  background: rgba(14, 165, 233, 0.1);
  color: var(--accent-primary);
  border: 1px solid rgba(14, 165, 233, 0.3);
}

.sipop-badge-green {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-success);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.sipop-badge-orange {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.sipop-badge-red {
  background: rgba(239, 68, 68, 0.1);
  color: var(--accent-danger);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* === FORM ELEMENTS === */
.form-control {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  padding: 10px 14px !important;
  transition: var(--transition) !important;
}

.form-control:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1) !important;
  background: white !important;
  outline: none !important;
}

.form-control::placeholder { 
  color: var(--text-muted) !important; 
}

label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 6px !important;
  display: block !important;
}

select.form-control option { 
  background: white; 
  color: var(--text-primary); 
}

/* === MODALS === */
.modal-content {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-xl) !important;
}

.modal-header {
  background: var(--bg-primary) !important;
  border-bottom: 2px solid var(--border-color) !important;
  padding: 20px 24px !important;
}

.modal-title { 
  font-family: 'Outfit', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important; 
}

.modal-header .close { 
  color: var(--text-secondary) !important; 
  opacity: 1 !important;
  font-size: 28px !important;
}

.modal-header .close:hover { 
  color: var(--accent-danger) !important; 
}

.modal-body { 
  padding: 24px !important; 
}

.modal-footer { 
  border-top: 2px solid var(--border-color) !important;
  padding: 20px 24px !important;
}

/* === ALERTS === */
.alert {
  border-radius: var(--radius-md) !important;
  border: 2px solid !important;
  padding: 14px 18px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: var(--accent-success) !important;
  color: #059669 !important;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.1) !important;
  border-color: var(--accent-warning) !important;
  color: #d97706 !important;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  border-color: var(--accent-danger) !important;
  color: #dc2626 !important;
}

.alert-info {
  background: rgba(14, 165, 233, 0.1) !important;
  border-color: var(--accent-primary) !important;
  color: #0284c7 !important;
}

/* === DATATABLES OVERRIDE === */
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-md) !important;
  padding: 8px 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  color: var(--text-secondary) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: var(--radius-sm) !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  margin: 0 3px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--bg-primary) !important;
  border-color: var(--accent-primary) !important;
  color: var(--accent-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--gradient-primary) !important;
  border-color: var(--accent-primary) !important;
  color: white !important;
}

table.dataTable thead th {
  background: var(--bg-primary) !important;
  border-bottom: 2px solid var(--border-color) !important;
  color: var(--text-secondary) !important;
  font-weight: 700 !important;
}

table.dataTable tbody tr:hover {
  background: var(--bg-primary) !important;
}

table.dataTable tbody td {
  border-top: 1px solid var(--border-light) !important;
}

/* === CUSTOM FILE INPUT === */
.custom-file-label {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  color: var(--text-muted) !important;
  border-radius: var(--radius-md) !important;
  padding: 10px 14px !important;
}

.custom-file-label::after {
  background: var(--bg-primary) !important;
  color: var(--text-primary) !important;
  border-left: 2px solid var(--border-color) !important;
  font-weight: 600 !important;
  border-radius: 0 var(--radius-md) var(--radius-md) 0 !important;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .sipop-sidebar {
    transform: translateX(-100%);
  }
  .sipop-sidebar.open {
    transform: translateX(0);
  }
  .sipop-main {
    margin-left: 0;
  }
  .sipop-menu-toggle {
    display: block;
  }
  .sipop-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sipop-topbar-time { 
    display: none; 
  }
  .sipop-content {
    padding: 20px 16px;
  }
}

@media (max-width: 480px) {
  .sipop-stats-grid { 
    grid-template-columns: 1fr; 
  }
  .sipop-page-header h2 {
    font-size: 22px;
  }
  .sipop-stat-value {
    font-size: 26px;
  }
}

/* === UTILITIES === */
.text-primary-custom { color: var(--accent-primary) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.fw-700 { font-weight: 700 !important; }
.fw-600 { font-weight: 600 !important; }
.fw-500 { font-weight: 500 !important; }

/* === OVERRIDE BOOTSTRAP WHITE BACKGROUNDS === */
body, .content, .orders {
  background: var(--bg-primary) !important;
}

.card, .card-body {
  background: white !important;
  border: 2px solid var(--border-color) !important;
  box-shadow: var(--shadow-sm) !important;
}

.table {
  background: transparent !important;
}

/* === FOOTER === */
.sipop-footer {
  padding: 20px 32px;
  border-top: 2px solid var(--border-color);
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.sipop-footer a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 600;
}

.sipop-footer a:hover {
  text-decoration: underline;
}
