/* ============================================================
   YoutubeService.in — Global Stylesheet (Light Blue Theme)
   ============================================================ */

:root {
  --primary: #1a73e8;
  --primary-dark: #1558b0;
  --primary-light: #e8f0fe;
  --sidebar-bg: #0d47a1;
  --sidebar-text: #fff;
  --sidebar-hover: #1565c0;
  --card-shadow: 0 2px 12px rgba(26,115,232,.12);
  --radius: 12px;
}

body { font-family: 'Segoe UI', sans-serif; background: #f4f7fb; color: #222; }

/* ---- Sidebar ---- */
.sidebar {
  width: 240px; min-height: 100vh; background: var(--sidebar-bg);
  position: fixed; top: 0; left: 0; z-index: 1000;
  display: flex; flex-direction: column; padding-top: 0;
}
.sidebar-brand {
  padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: 1.3rem; font-weight: 700; color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px;
}
.sidebar-brand img { width: 32px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 22px; color: rgba(255,255,255,.85);
  text-decoration: none; font-size: .95rem; transition: all .2s;
}
.sidebar nav a:hover, .sidebar nav a.active {
  background: var(--sidebar-hover); color: #fff;
}
.sidebar nav a i { width: 20px; text-align: center; font-size: 1.05rem; }
.sidebar-section { padding: 10px 22px 4px; font-size: .72rem;
  text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.45); margin-top: 8px; }

/* ---- Main content ---- */
.main-content { margin-left: 240px; min-height: 100vh; }
.topbar {
  background: #fff; border-bottom: 1px solid #e3eaf5;
  padding: 0 28px; height: 60px; display: flex;
  align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 999;
}
.topbar .balance-pill {
  background: var(--primary-light); color: var(--primary);
  padding: 5px 14px; border-radius: 20px; font-weight: 600; font-size: .9rem;
}
.page-body { padding: 28px; }

/* ---- Cards ---- */
.stat-card {
  background: #fff; border-radius: var(--radius);
  box-shadow: var(--card-shadow); padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
}
.stat-card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: #fff;
}
.stat-card .icon.blue   { background: #1a73e8; }
.stat-card .icon.green  { background: #2e7d32; }
.stat-card .icon.orange { background: #e65100; }
.stat-card .icon.purple { background: #6a1b9a; }
.stat-card .value { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat-card .label { font-size: .8rem; color: #666; margin-top: 2px; }

/* ---- Panel card ---- */
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.panel-header { padding: 18px 22px; border-bottom: 1px solid #eef2f9; font-weight: 600; font-size: 1rem; }
.panel-body { padding: 22px; }

/* ---- Tables ---- */
.table-wrap { overflow-x: auto; }
table.smm-table { width: 100%; border-collapse: collapse; }
table.smm-table th {
  background: #f0f4ff; padding: 11px 14px; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .5px; color: #555;
  border-bottom: 2px solid #dde8f8; text-align: left;
}
table.smm-table td { padding: 11px 14px; border-bottom: 1px solid #f0f3f9; font-size: .92rem; }
table.smm-table tr:last-child td { border-bottom: none; }
table.smm-table tr:hover td { background: #f8faff; }

/* ---- Badges ---- */
.badge-status { padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.badge-pending    { background: #fff3e0; color: #e65100; }
.badge-processing { background: #e3f2fd; color: #1565c0; }
.badge-completed  { background: #e8f5e9; color: #2e7d32; }
.badge-partial    { background: #f3e5f5; color: #6a1b9a; }
.badge-cancelled  { background: #fce4ec; color: #b71c1c; }
.badge-approved   { background: #e8f5e9; color: #2e7d32; }
.badge-rejected   { background: #fce4ec; color: #b71c1c; }

/* ---- Buttons ---- */
.btn-primary   { background: var(--primary); border: none; }
.btn-primary:hover { background: var(--primary-dark); }

/* ---- Forms ---- */
.form-label { font-size: .88rem; font-weight: 600; color: #444; }
.form-control, .form-select { border-radius: 8px; border: 1.5px solid #d0daf0; font-size: .93rem; }
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}

/* ---- Service card ---- */
.service-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--card-shadow);
  padding: 16px 18px; cursor: pointer; border: 2px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover, .service-card.selected {
  border-color: var(--primary); box-shadow: 0 4px 20px rgba(26,115,232,.2);
}
.service-card .svc-name { font-weight: 600; font-size: .93rem; }
.service-card .svc-rate { color: var(--primary); font-weight: 700; font-size: .88rem; }
.service-card .svc-limits { color: #888; font-size: .78rem; }

/* ---- Auth pages ---- */
.auth-wrapper {
  min-height: 100vh; background: linear-gradient(135deg,#1a73e8 0%,#0d47a1 100%);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.auth-box {
  background: #fff; border-radius: 16px; padding: 38px 40px;
  width: 100%; max-width: 420px; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.auth-logo { text-align: center; margin-bottom: 24px; }
.auth-logo .brand { font-size: 1.5rem; font-weight: 800; color: var(--primary); }

/* ---- Landing page ---- */
.hero-section {
  background: linear-gradient(135deg,#1a73e8,#0d47a1);
  color: #fff; padding: 90px 0 80px;
}
.feature-card { background: #fff; border-radius: var(--radius); padding: 28px 22px;
  box-shadow: var(--card-shadow); text-align: center; }
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }

/* ---- Notice bar ---- */
.notice-bar { background: #fff3cd; color: #856404; border-radius: 8px; padding: 10px 16px;
  font-size: .88rem; margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }

/* ---- Wallet UPI box ---- */
.upi-box { background: var(--primary-light); border-radius: var(--radius); padding: 22px;
  text-align: center; }
.upi-box .upi-id { font-size: 1.3rem; font-weight: 700; color: var(--primary); letter-spacing: .5px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .sidebar { width: 100%; min-height: auto; position: relative; }
  .main-content { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .page-body { padding: 16px; }
}
