/* Google Fonts Bengali Support */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #057a55;
  --primary-hover: #046c4e;
  --primary-light: #e8f5e9;
  --primary-gradient: linear-gradient(135deg, #057a55 0%, #10b981 100%);
  --bg-gradient: linear-gradient(180deg, #edf7f2 0%, #f7faf9 100%);
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-color: #e5e7eb;
  --card-bg: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  
  /* Status Colors */
  --status-pending: #d97706;
  --status-pending-bg: #fef3c7;
  --status-processing: #2563eb;
  --status-processing-bg: #dbeafe;
  --status-completed: #057a55;
  --status-completed-bg: #d1fae5;
  --status-cancelled: #dc2626;
  --status-cancelled-bg: #fee2e2;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Hind Siliguri', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg-gradient);
  min-height: 100vh;
  color: var(--text-dark);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Base Layout Container (Mobile Frame on Desktop) */
.app-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03);
  position: relative;
}

@media (min-width: 768px) {
  .app-container.desktop-expanded {
    max-width: 960px;
    margin: 20px auto;
    border-radius: var(--radius-xl);
    min-height: calc(100vh - 40px);
    box-shadow: var(--shadow-lg);
  }
}

/* ==========================================================================
   LANDING / PORTAL WELCOME CARD (Screenshot 1)
   ========================================================================== */
.portal-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: #eef8f3;
}

.portal-card {
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: var(--shadow-lg);
  padding: 36px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.portal-card::before {
  content: '';
  position: absolute;
  top: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  background: rgba(16, 185, 129, 0.12);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.portal-card::after {
  content: '';
  position: absolute;
  bottom: -40px;
  left: -40px;
  width: 110px;
  height: 110px;
  background: rgba(5, 122, 85, 0.08);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.portal-content {
  position: relative;
  z-index: 1;
}

.brand-logo-wrap {
  width: 110px;
  height: 110px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-logo-wrap img,
.brand-logo-wrap svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.portal-title {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.portal-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-weight: 500;
}

.portal-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
}

/* Reusable Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 13px 20px;
  font-size: 16px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border: 1px solid transparent;
  font-family: inherit;
}

.btn-primary {
  background-color: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(5, 122, 85, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 14px rgba(5, 122, 85, 0.35);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: #ffffff;
  color: #1f2937;
  border-color: #e5e7eb;
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background-color: #f9fafb;
  border-color: #d1d5db;
  transform: translateY(-1px);
}

.btn-outline-green {
  background-color: #ffffff;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-green:hover {
  background-color: var(--primary-light);
  transform: translateY(-1px);
}

.portal-footer {
  font-size: 13px;
  color: #9ca3af;
  line-height: 1.6;
}

.portal-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--primary);
  font-weight: 500;
  margin-top: 4px;
}

.portal-footer-badge::before {
  content: '•';
  color: var(--primary);
  font-size: 16px;
}

/* ==========================================================================
   TOP NAVBAR (Screenshot 4)
   ========================================================================== */
.top-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 30;
}

.nav-toggle-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
  padding: 6px;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.nav-toggle-btn:hover {
  background: #f3f4f6;
}

.nav-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo img,
.nav-logo svg {
  width: 42px;
  height: 42px;
}

.nav-balance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e6f7ec;
  color: #047857;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 700;
  border: 1px solid #bbf7d0;
  text-decoration: none;
  transition: all 0.2s;
}

.nav-balance-badge:hover {
  background: #d1fae5;
  transform: translateY(-1px);
}

/* ==========================================================================
   DASHBOARD MAIN VIEW (Screenshot 4)
   ========================================================================== */
.dashboard-content {
  padding: 18px 16px 30px;
  flex: 1;
}

/* 4 Quick Action Cards (2x2 Grid) */
.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.action-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #86efac;
}

.action-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--primary);
  background: #f0fdf4;
  border: 1px solid #dcfce7;
}

.action-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
}

/* Highlight Recharge Card */
.action-card.recharge-highlight {
  border: 1.5px solid #10b981;
  background: #fcfdfd;
}

.action-card.recharge-highlight .action-card-icon {
  background: #ecfdf5;
  color: #057a55;
}

/* Section Header With Bengali Title & Bar */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  margin-top: 10px;
}

.section-bar {
  width: 4px;
  height: 20px;
  background-color: var(--primary);
  border-radius: 2px;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

/* Order Summary 4 Stat Cards (2x2 Grid) */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px 14px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s;
}

.stat-card:hover {
  transform: translateY(-2px);
}

.stat-card.pending {
  background-color: #d97706; /* Mustard Amber */
}

.stat-card.processing {
  background-color: #2563eb; /* Royal Blue */
}

.stat-card.completed {
  background-color: #057a55; /* Forest Green */
}

.stat-card.cancelled {
  background-color: #dc2626; /* Crimson Red */
}

.stat-number {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.95;
}

/* Orders List Section */
.orders-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-item-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s;
}

.order-item-card:hover {
  border-color: #cbd5e1;
}

.order-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-service-name {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.order-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
}

.order-badge.Pending {
  background: var(--status-pending-bg);
  color: var(--status-pending);
}

.order-badge.Processing {
  background: var(--status-processing-bg);
  color: var(--status-processing);
}

.order-badge.Completed {
  background: var(--status-completed-bg);
  color: var(--status-completed);
}

.order-badge.Cancelled {
  background: var(--status-cancelled-bg);
  color: var(--status-cancelled);
}

.order-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-muted);
}

.empty-state {
  text-align: center;
  padding: 36px 16px;
  color: var(--text-muted);
}

.empty-state-icon {
  margin-bottom: 12px;
  color: #cbd5e1;
}

/* Flash Messages */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.alert-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Form Styles */
.form-group {
  margin-bottom: 16px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #374151;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  background-color: #ffffff;
  color: #111827;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(5, 122, 85, 0.15);
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

/* Notice Marquee Bar */
.notice-marquee {
  background: #fef9c3;
  color: #854d0e;
  border-bottom: 1px solid #fef08a;
  padding: 6px 12px;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}

.notice-marquee marquee {
  flex: 1;
}
