/* === Root Color Theme === */
:root {
  --pink-600:#e84393;
  --pink-500:#ff5ca2;
  --pink-100:#fff0f6;
  --muted:#6b6b6b;
  --radius:12px;
  --card-shadow:0 6px 20px rgba(232,66,147,0.08);
}

/* === Global Reset === */
*{box-sizing:border-box;margin:0;padding:0;font-family:"Segoe UI",sans-serif}
body{background:#f8f8f8;display:flex;min-height:100vh;color:#222}
h1,h2,h3{font-weight:600}
a{text-decoration:none;color:inherit}

/* === Sidebar === */
.sidebar{
  width:240px;
  background:var(--pink-600);
  color:#fff;
  display:flex;
  flex-direction:column;
  padding:20px;
  transition:0.3s;
}
.sidebar.collapsed{width:60px}
.sidebar .brand{display:flex;align-items:center;gap:10px;margin-bottom:20px}
.sidebar .brand img{width:32px;height:32px}
.sidebar h1{font-size:18px}
.sidebar .nav{display:flex;flex-direction:column;gap:8px;margin-top:20px}
.sidebar .nav a{
  padding:10px 12px;border-radius:var(--radius);transition:0.2s;
}
.sidebar .nav a:hover,.sidebar .nav a.active{background:rgba(255,255,255,0.25)}

/* === Main === */
.main{flex:1;display:flex;flex-direction:column;}

/* === Topbar === */
.topbar{
  background:#fff;
  box-shadow:var(--card-shadow);
  padding:10px 16px;
  display:flex;justify-content:space-between;align-items:center;
  position:sticky;top:0;z-index:10;
}
.topbar .flex{display:flex;align-items:center;gap:8px}
.topbar .search input{
  padding:6px 10px;border-radius:var(--radius);border:1px solid #ddd;
}

/* === Content === */
.content{padding:20px;display:flex;flex-direction:column;gap:20px}

/* === Card === */
.card{
  background:#fff;border-radius:var(--radius);
  box-shadow:var(--card-shadow);padding:16px;
}
.card h2,h3{margin-bottom:10px;color:var(--pink-600)}

/* === Forms === */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-bottom:10px}
label{display:flex;flex-direction:column;font-size:14px;gap:4px}
input,select{
  padding:8px 10px;border:1px solid #ccc;border-radius:var(--radius);
}

/* === Buttons === */
.btn{padding:8px 14px;border:none;border-radius:var(--radius);cursor:pointer;font-weight:500}
.btn.primary{background:var(--pink-600);color:#fff}
.btn.ghost{background:#fff;border:1px solid #ddd}
.btn:hover{opacity:.9}

/* === Tables === */
table{width:100%;border-collapse:collapse;font-size:14px;margin-top:10px}
th,td{border:1px solid #eee;padding:6px 8px;text-align:left}
th{background:var(--pink-100);color:var(--pink-600)}

/* === Utility === */
.flex{display:flex;align-items:center;gap:8px}
.small{font-size:12px;color:var(--muted)}
@media(max-width:768px){
  .sidebar{position:fixed;left:-240px;top:0;height:100%;z-index:100}
  .sidebar.show{left:0}
  .main{margin-left:0}
}
/* ===============================================
   DECHA STORE - Modern Pink Responsive Dashboard
   =============================================== */

:root {
  --pink: #ff5ca8;
  --pink-dark: #e84393;
  --white: #ffffff;
  --gray-bg: #fff4fa;
  --dark: #2d2d2d;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

/* Body */
body {
  display: flex;
  min-height: 100vh;
  background: var(--gray-bg);
  color: var(--dark);
  overflow-x: hidden;
}

/* Sidebar */
.sidebar {
  width: 250px;
  background: var(--white);
  border-right: 1px solid #ffd9eb;
  display: flex;
  flex-direction: column;
  padding: 20px;
  position: fixed;
  height: 100%;
  z-index: 100;
  transition: all 0.3s ease;
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 35px;
}

.sidebar-header .logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.sidebar h2 {
  font-size: 1.3rem;
  color: var(--pink-dark);
  font-weight: 600;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav a {
  text-decoration: none;
  color: #666;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 500;
  transition: 0.2s;
}

.nav a:hover,
.nav a.active {
  background: linear-gradient(90deg, var(--pink) 0%, var(--pink-dark) 100%);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(232, 67, 147, 0.3);
}

/* Content */
.content {
  flex: 1;
  margin-left: 250px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.3s ease;
}

/* Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid #ffd9eb;
  padding: 15px 25px;
  position: sticky;
  top: 0;
  z-index: 99;
}

.topbar h1 {
  color: var(--pink-dark);
  font-size: 1.3rem;
  font-weight: 600;
}

.topbar button {
  border: none;
  background: var(--pink-dark);
  color: var(--white);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
  transition: 0.2s;
}

.topbar button:hover {
  background: var(--pink);
}

/* Stats cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 25px;
}

.stat-card {
  border-radius: 20px;
  color: var(--white);
  padding: 25px;
  box-shadow: 0 4px 10px rgba(232, 67, 147, 0.25);
  text-align: center;
  transition: transform 0.25s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.pink-gradient {
  background: linear-gradient(135deg, var(--pink-dark), var(--pink));
}

.stat-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: #ffeef6;
}

.stat-card p {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
}

/* Orders Table Section */
.orders-section {
  background: var(--white);
  margin: 0 25px 30px;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(232, 67, 147, 0.15);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 1.2rem;
  color: var(--pink-dark);
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
  width: 100%;
}

.modern-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.modern-table thead {
  background: linear-gradient(90deg, var(--pink-dark), var(--pink));
  color: var(--white);
}

.modern-table th,
.modern-table td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid #f3cce0;
}

.modern-table tbody tr:hover {
  background: #ffeaf4;
}

.btn {
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: 0.2s;
}

.btn.ghost {
  background: transparent;
  color: var(--pink-dark);
}

.btn.ghost:hover {
  background: #ffd9eb;
}

/* Mobile Responsive */
@media (max-width: 900px) {
  .sidebar {
    left: -250px;
    position: fixed;
    top: 0;
    background: var(--white);
    z-index: 200;
    transition: all 0.3s ease;
  }
  .sidebar.show {
    left: 0;
  }
  .content {
    margin-left: 0;
  }
  .topbar button {
    background: var(--pink-dark);
  }
  .stats-grid {
    margin: 15px;
    gap: 15px;
  }
  .orders-section {
    margin: 10px;
    padding: 15px;
  }
  .modern-table th,
  .modern-table td {
    padding: 10px 6px;
    font-size: 0.85rem;
  }
}
/* === SLIDE TABLE + EFEK BAYANGAN === */
@media (max-width: 900px) {
  .orders-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    transition: box-shadow 0.25s ease, transform 0.15s ease;
  }

  .orders-wrapper::-webkit-scrollbar {
    height: 8px;
  }

  .orders-wrapper::-webkit-scrollbar-thumb {
    background: #e84393;
    border-radius: 10px;
  }

  /* Saat sedang digulir, munculkan efek bayangan lembut */
  .orders-wrapper.scrolling {
    box-shadow: inset 0 0 16px rgba(232, 67, 147, 0.25);
    transform: translateY(-1px);
  }

  table {
    min-width: 700px;
  }

  th, td {
    white-space: nowrap;
  }
}
