/* ========================================================
   RajanaSosmed - Modern Premium UI Design System
   Website: rajanasosmed.com
   ======================================================== */

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

:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #eef2ff;
  --secondary: #0ea5e9;
  --accent: #8b5cf6;
  --dark-bg: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --body-bg: #f8fafc;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --card-radius: 1rem;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Glassmorphism & Modern Cards */
.card-custom {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--card-radius);
  box-shadow: 0 4px 25px -5px rgba(0, 0, 0, 0.05), 0 2px 10px -4px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.card-custom:hover {
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
}

/* Gradient Hero / Headers */
.bg-gradient-rajana {
  background: linear-gradient(135deg, #3730a3 0%, #4f46e5 50%, #0284c7 100%);
  color: #ffffff;
}

.bg-gradient-dark {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  color: #ffffff;
}

/* Stat Cards */
.stat-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--card-radius);
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 25px -8px rgba(79, 70, 229, 0.15);
}

.stat-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
}

.stat-icon.primary { background: #e0e7ff; color: #4338ca; }
.stat-icon.success { background: #dcfce7; color: #15803d; }
.stat-icon.info    { background: #e0f2fe; color: #0369a1; }
.stat-icon.warning { background: #fef3c7; color: #b45309; }
.stat-icon.danger  { background: #fee2e2; color: #b91c1c; }

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  font-weight: 600;
  border-radius: 0.625rem;
  padding: 0.6rem 1.25rem;
  transition: var(--transition);
}

.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.35);
}

.btn-secondary {
  border-radius: 0.625rem;
  font-weight: 500;
}

/* Dashboard Sidebar Layout */
.dashboard-wrapper {
  display: flex;
  min-height: 100vh;
}

.dashboard-sidebar {
  width: 270px;
  background: #0f172a;
  color: #f8fafc;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.dashboard-sidebar .brand-area {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-sidebar .nav-link {
  color: #94a3b8;
  padding: 0.75rem 1.25rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  margin: 0.2rem 0.75rem;
  transition: var(--transition);
}

.dashboard-sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.dashboard-sidebar .nav-link.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.dashboard-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.dashboard-topbar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.85rem 1.75rem;
}

/* Tables */
.table-custom {
  vertical-align: middle;
}

.table-custom thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  font-size: 0.825rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.table-custom tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Live Calculator Box */
.calculator-box {
  background: linear-gradient(145deg, #1e1b4b, #312e81);
  color: #ffffff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(49, 46, 129, 0.4);
}

.calculator-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: -0.02em;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .dashboard-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -270px;
    z-index: 1050;
  }
  .dashboard-sidebar.show {
    left: 0;
  }
}

/* Mobile-First Table & Touch Optimization */
@media (max-width: 767.98px) {
  .table-responsive {
    border: 0;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .table-custom th, .table-custom td {
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.65rem 0.75rem;
  }
  .form-control, .form-select, .btn {
    min-height: 44px;
    font-size: 0.95rem;
  }
  .btn-sm {
    min-height: 34px;
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
  }
  .hero-section {
    padding: 3.5rem 0 2.5rem !important;
    text-align: center;
  }
  .hero-section .display-4 {
    font-size: 2rem !important;
  }
  .hero-section .d-flex.flex-wrap {
    justify-content: center;
  }
  .dashboard-topbar {
    padding: 0.65rem 1rem;
  }
  .stat-card {
    padding: 1rem;
  }
}

/* Platform Filter Pills Shared Styling */
.platform-pill {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 50rem;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
}
.platform-pill:hover {
  background: #f1f5f9;
  color: #1e293b;
}
.platform-pill.active {
  background: linear-gradient(135deg, #4f46e5, #0ea5e9) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}
.platform-filter-bar {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.platform-filter-bar::-webkit-scrollbar {
  height: 4px;
}
.platform-filter-bar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

