@import url('font/sf-pro-display.css');
@import url('font/jakarta.css');

:root {
  --primary-orange: #f24a1d;
  --primary-orange-hover: #d33c10;
  --primary-orange-light: #fff4ee;
  --primary-orange-cream: #ffece0;
  --text-dark: #1a1e26;
  --text-muted: #8c9199;
  --bg-light: #f5f6f8;
  --card-bg: #ffffff;
  --border-color: #f1f2f4;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --font-sf-pro: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Reset and Layout Base */
html, body, button, input, select, textarea, .btn, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  font-family: var(--font-sf-pro);
}

body {
  height: 100%;
  background-color: #e9ecef;
  color: var(--text-dark);
}

/* Centered Mobile Shell for Desktop, Fullscreen on Mobile */
.mobile-viewport {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background-color: var(--bg-light);
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.06);
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

@media (max-width: 576px) {
  .mobile-viewport {
    max-width: 100%;
    box-shadow: none;
  }
}

/* Scrollbar adjustment */
.mobile-viewport::-webkit-scrollbar {
  width: 4px;
}
.mobile-viewport::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.1);
  border-radius: 4px;
}

/* Typography and helper classes */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  margin: 0;
}
a {
  text-decoration: none;
  color: inherit;
}
a:hover {
  color: inherit;
}

/* Top App Header Flat (Invoices, Reports) */
.app-header-flat {
  background-color: #EC5F2A;
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header-flat .back-btn {
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-header-flat .header-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  flex-grow: 1;
  text-align: center;
}
.app-header-flat .header-placeholder {
  width: 22px; /* balance the back-btn size */
}

/* Shared Bottom Navigation Bar */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: 72px;
  background-color: #ffffff;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  padding: 0 10px;
  box-sizing: border-box;
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  height: 100%;
  cursor: pointer;
  transition: color 0.2s ease;
}

.bottom-nav-item i {
  font-size: 20px;
  margin-bottom: 3px;
  transition: transform 0.2s ease;
}

.bottom-nav-item:hover i {
  transform: translateY(-2px);
}

    .bottom-nav-item.active {
        color: #EC5F2A;
    }

/* Floating Center QR Code Button */
.bottom-nav-item.mid-btn-item {
  position: relative;
  overflow: visible;
  z-index: 1001;
}

.bottom-nav-mid-circle {
  position: absolute;
  top: -26px;
  width: 58px;
  height: 58px;
  background-color: #EC5F2A;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff !important;
  font-size: 24px;
  box-shadow: 0 4px 16px rgba(242, 74, 29, 0.35);
  border: 4px solid #ffffff;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.bottom-nav-mid-circle:hover {
  transform: scale(1.08);
  background-color: var(--primary-orange-hover);
}

/* ==========================================================================
   1. DASHBOARD PAGE
   ========================================================================== */
.dash-header {
    background-color: #EC5F2A;
    color: #ffffff;
    padding: 24px 20px 60px 20px;
    border-bottom-left-radius: 28px;
    border-bottom-right-radius: 28px;
    position: relative;
}

.dash-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.dash-greeting {
  font-size: 15px;
  font-weight: 500;
  opacity: 0.9;
  line-height: 1.4;
}

.dash-username {
  font-size: 20px;
  font-weight: 800;
  margin-top: 2px;
}

.dash-header-actions {
  display: flex;
  gap: 14px;
}

.dash-icon-btn {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 18px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
}

.dash-icon-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.dash-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: #ffffff;
  color: #EC5F2A;
  font-size: 10px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #EC5F2A;
}

/* Balance Card */
.balance-card {
  background-color: var(--primary-orange-cream);
  border-radius: 20px;
  padding: 20px;
  margin: -40px 20px 20px 20px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

.balance-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #EC5F2A;
}

.balance-logo {
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.balance-logo-dot {
  width: 6px;
  height: 6px;
  background-color: #EC5F2A;
  border-radius: 50%;
  display: inline-block;
}

.balance-toggle {
  font-size: 14px;
  cursor: pointer;
  opacity: 0.8;
}

.balance-amount {
  font-size: 28px;
  font-weight: 800;
  color: #EC5F2A;
  margin: 10px 0 20px 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.balance-currency {
  font-size: 14px;
  font-weight: 600;
  color: #c9826d;
}

/* Double balance boxes layout */
.balance-container-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0 20px 0;
}

.balance-box {
  background-color: rgba(242, 74, 29, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.balance-box-title {
  font-size: 11px;
  color: #c9826d;
  font-weight: 500;
  margin-bottom: 4px;
}

.balance-box-value {
  font-size: 16px;
  font-weight: 800;
  color: #EC5F2A;
  display: flex;
  align-items: baseline;
  gap: 2px;
  letter-spacing: 0.5px;
}

.balance-box-currency {
  font-size: 11px;
  font-weight: 600;
  color: #c9826d;
  letter-spacing: 0px;
}

/* Quick Actions inside Card */
.balance-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.action-btn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.action-icon-circle {
  width: 46px;
  height: 46px;
  background-color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #EC5F2A;
  font-size: 18px;
  box-shadow: 0 4px 10px rgba(242, 74, 29, 0.06);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.action-btn-item:hover .action-icon-circle {
  transform: translateY(-3px);
  background-color: var(--primary-orange-light);
}

.action-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dark);
  margin-top: 8px;
  text-align: center;
}

/* Standard Section Container */
.section-container {
  padding: 0 20px;
  margin-bottom: 24px;
}

.section-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Pill/Filter Controls */
.filter-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pills-row::-webkit-scrollbar {
  display: none; /* Hide scrollbar for clean filter look */
}

.filter-pill {
  padding: 6px 12px;
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.filter-pill.active {
  background-color: #EC5F2A;
  border-color: #EC5F2A;
  color: #ffffff;
}

/* Overview Content Card */
.overview-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1px 1.5fr;
  align-items: center;
  gap: 15px;
}

.overview-stat-item {
  display: flex;
  flex-direction: column;
}

.overview-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
}

.overview-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #EC5F2A;
}

.overview-stat-val.currency {
  font-size: 18px;
}

.overview-divider {
  background-color: var(--border-color);
  height: 40px;
  width: 100%;
}

/* Store Cards */
.store-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.store-card {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.store-icon-wrapper {
  width: 50px;
  height: 50px;
  background-color: var(--primary-orange-light);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #EC5F2A;
  font-size: 24px;
  flex-shrink: 0;
}

.store-info {
  flex-grow: 1;
}

.store-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.store-meta-row {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.store-meta-label {
  font-weight: 500;
}

.store-meta-val {
  font-weight: 700;
  color: #EC5F2A;
}


/* ==========================================================================
   2. INVOICE LIST PAGE
   ========================================================================== */
.empty-state-container {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
  background-color: #ffffff;
  min-height: calc(100vh - 128px); /* subtract header and nav heights */
  box-sizing: border-box;
}

.empty-state-svg-wrapper {
  width: 200px;
  height: 200px;
  margin-bottom: 24px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  max-width: 260px;
  line-height: 1.5;
}


/* ==========================================================================
   3. PAYMENT / QR CODE PAGE
   ========================================================================== */
.pay-page-wrapper {
    background-color: #EC5F2A;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 16px 20px 40px 20px;
    box-sizing: border-box;
    color: #ffffff;
}

.pay-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: 24px;
}

.pay-close-btn {
  position: absolute;
  left: 0;
  font-size: 24px;
  color: #ffffff;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.pay-tabs {
  display: flex;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 3px;
  width: 220px;
}

.pay-tab-item {
  flex: 1;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(255, 255, 255, 0.85);
}

.pay-tab-item.active {
  background-color: #ffffff;
  color: #EC5F2A;
}

/* Ticket/Voucher Card Layout with notches */
.ticket-card {
  background-color: #ffffff;
  border-radius: 24px;
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin-top: 10px;
}

.ticket-upper {
  padding: 24px 20px 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.ticket-logo {
  color: #EC5F2A;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.1;
  margin-bottom: 16px;
}

.ticket-logo span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-top: 2px;
}

.ticket-qr-container {
  background-color: #f7f8fa;
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.02);
}

.ticket-qr-img {
  width: 170px;
  height: 170px;
  object-fit: contain;
}

.ticket-namba-box {
  background-color: #f7f8fa;
  border-radius: 12px;
  padding: 12px 20px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.ticket-namba-title {
  font-size: 15px;
  font-weight: 800;
  color: #EC5F2A;
  margin-bottom: 2px;
}

.ticket-namba-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.ticket-action-link {
  color: #EC5F2A;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Notched Divider Row */
.ticket-divider-row {
  position: relative;
  height: 20px;
  display: flex;
  align-items: center;
}

.ticket-notch-left, .ticket-notch-right {
  width: 20px;
  height: 20px;
  background-color: #EC5F2A;
  border-radius: 50%;
  position: absolute;
  top: 0;
  z-index: 5;
}

.ticket-notch-left {
  left: -10px;
}

.ticket-notch-right {
  right: -10px;
}

.ticket-divider-dashed {
  width: 100%;
  border-top: 1.5px dashed var(--border-color);
}

.ticket-lower {
  padding: 20px 24px 24px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.ticket-footer-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.ticket-action-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-orange-light);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #EC5F2A;
  font-size: 18px;
  margin-bottom: 8px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.ticket-footer-action:hover .ticket-action-icon {
  transform: translateY(-3px);
  background-color: var(--primary-orange-cream);
}

.ticket-action-text {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
}


/* ==========================================================================
   4. REPORTS / CHARTS PAGE
   ========================================================================== */
.reports-content-container {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chart-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chart-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

/* Orange dropdown select */
.chart-select-wrapper {
  position: relative;
}

.chart-select {
  background-color: #EC5F2A;
  color: #ffffff;
  border: none;
  border-radius: 20px;
  padding: 6px 30px 6px 16px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  appearance: none; /* remove default arrow */
  outline: none;
}

.chart-select-wrapper::after {
  content: '\F2E5'; /* bootstrap icon chevron-down */
  font-family: 'bootstrap-icons';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 10px;
  pointer-events: none;
}

/* Chart Legend Styling */
.chart-legend-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chart-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.chart-legend-dot.transactions {
  background-color: #3b3f46;
}

.chart-legend-dot.revenue {
  background-color: #EC5F2A;
}

/* Chart Card Canvas wrapper */
.chart-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  min-height: 250px;
}

/* Split summary widgets bottom of Reports */
.reports-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.summary-stat-card {
  background-color: var(--primary-orange-light);
  border-radius: 16px;
  padding: 14px 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(242, 74, 29, 0.05);
}

.summary-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.summary-stat-icon {
  width: 36px;
  height: 36px;
  background-color: #EC5F2A;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 16px;
}

/* Progress circle indicator inside summary card */
.progress-badge-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #EC5F2A;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 9px;
  font-weight: 700;
  color: #EC5F2A;
  background-color: #ffffff;
}

.summary-stat-card.zero-percent .progress-badge-circle {
  border-color: #e2e4e8;
  color: var(--text-muted);
}

.summary-stat-card.zero-percent .summary-stat-icon {
  background-color: var(--text-muted);
}

.summary-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 2px;
}

.summary-stat-amount {
  font-size: 14px;
  font-weight: 800;
  color: #EC5F2A;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.summary-stat-card.zero-percent .summary-stat-amount {
  color: var(--text-muted);
}


/* ==========================================================================
   5. PROFILE / SETTINGS PAGE
   ========================================================================== */
.profile-header-card {
  background-color: #EC5F2A;
  color: #ffffff;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
}

.profile-user-info-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.profile-avatar-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-size: 28px;
  overflow: hidden;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-meta {
  display: flex;
  flex-direction: column;
}

.profile-name {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 2px;
}

.profile-phone {
  font-size: 13px;
  opacity: 0.85;
  font-weight: 500;
}

/* User stats summary bar */
.profile-stats-bar {
  display: flex;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 16px;
}

.profile-stat-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.profile-stat-col:first-child {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 12px;
}

.profile-stat-col:last-child {
  padding-left: 20px;
}

.profile-stat-lbl {
  font-size: 11px;
  opacity: 0.8;
  font-weight: 500;
}

.profile-stat-val {
  font-size: 20px;
  font-weight: 800;
}

/* Menu groupings list */
.menu-groups-container {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-group-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-group-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-left: 4px;
}

.menu-list-card {
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.menu-list-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  position: relative;
}

.menu-list-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 44px;
  right: 0;
  height: 1px;
  background-color: var(--border-color);
}

.menu-list-item:hover {
  background-color: var(--bg-light);
}

.menu-item-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dark);
  font-size: 16px;
  opacity: 0.8;
}

.menu-item-text {
  flex-grow: 1;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}

.menu-item-chevron {
  color: var(--text-muted);
  font-size: 12px;
  opacity: 0.7;
}

/* Footer of profile */
.profile-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 20px 20px;
}

.profile-version {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.logout-btn {
  background-color: #ffffff;
  color: #EC5F2A;
  border: 1px solid var(--border-color);
  padding: 10px 32px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background-color: var(--primary-orange-light);
  border-color: rgba(242, 74, 29, 0.1);
  transform: translateY(-1px);
}

/* ==========================================================================
   6. LANGUAGE SELECTION
   ========================================================================== */
.lang-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 20px;
}

.lang-card {
  background-color: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.lang-card.selected {
  border-color: #EC5F2A;
  background-color: var(--primary-orange-light);
}

.lang-flag {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid #e2e5ec;
  border-radius: 2px;
  overflow: hidden;
}

.lang-name {
  flex-grow: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.lang-check {
  font-size: 18px;
  color: #EC5F2A;
  display: none;
}

.lang-card.selected .lang-check {
  display: block;
}

.lang-check-placeholder {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
}

.lang-card.selected .lang-check-placeholder {
  display: none;
}

.lang-save-box {
  padding: 20px;
  margin-top: 10px;
}

.btn-save-lang {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: not-allowed;
  background-color: #e2e5ec;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.btn-save-lang.active {
  background-color: #EC5F2A;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(242, 74, 29, 0.25);
}

.btn-save-lang.active:hover {
  background-color: var(--primary-orange-hover);
}

/* Modal Popup stylesheet */
.lang-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.lang-modal-card {
  background-color: #ffffff;
  border-radius: 20px;
  width: 85%;
  max-width: 320px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--shadow-md);
  animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
  0% {
    transform: scale(0.9);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.lang-modal-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.lang-modal-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
}

.lang-modal-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-modal {
  padding: 10px;
  border-radius: 12px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-modal-cancel {
  background-color: #f5f6f8;
  color: var(--text-dark);
}

.btn-modal-cancel:hover {
  background-color: #e9ecef;
}

.btn-modal-restart {
  background-color: #EC5F2A;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(242, 74, 29, 0.15);
}

.btn-modal-restart:hover {
  background-color: var(--primary-orange-hover);
}

/* ==========================================================================
   7. REUSABLE COMMON COMPONENTS (Header, Buttons, Cards)
   ========================================================================== */

/* Common White Header Banner (Used across all views: Index, Add, Detail, NetworkGuide, Redirecting) */
.app-header-white,
.device-header-white,
.add-device-header-white,
.network-guide-header,
.redirecting-header,
.device-info-header {
  background-color: #ffffff;
  color: #1a1e26;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f0f0f0;
}

.app-header-white .header-back-btn,
.app-header-white .header-close-btn,
.device-header-white .header-back-btn,
.device-header-white .header-close-btn,
.add-device-header-white .header-back-btn,
.add-device-header-white .header-close-btn,
.network-guide-header .header-back-btn,
.network-guide-header .header-close-btn,
.redirecting-header .header-back-btn,
.redirecting-header .header-close-btn,
.device-info-header .header-back-btn,
.device-info-header .header-close-btn,
.header-back-btn,
.header-close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #1a1e26;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  text-decoration: none;
  opacity: 0.85;
}

.app-header-white .header-back-btn:hover,
.app-header-white .header-close-btn:hover,
.header-back-btn:hover,
.header-close-btn:hover {
  opacity: 1;
}

.header-main-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  flex-grow: 1;
  text-align: center;
  color: #1a1e26;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-placeholder {
  width: 22px;
}

/* Common Primary Orange Pill Button */
.btn-primary-orange {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #f25822 0%, #e54e1b 100%);
  border: none;
  border-radius: 26px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(242, 88, 34, 0.35);
  transition: all 0.2s ease;
  outline: none;
  text-decoration: none;
}

.btn-primary-orange:hover {
  background: linear-gradient(135deg, #d34212 0%, #c43f11 100%);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(242, 88, 34, 0.45);
}

/* Common Floating Action Button (+ Add device) */
.fab-container {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 999;
}

.btn-add-device-fab {
  background: linear-gradient(135deg, #f25822 0%, #e54e1b 100%);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(242, 88, 34, 0.35);
  transition: all 0.2s ease;
}

.btn-add-device-fab:hover {
  background: linear-gradient(135deg, #d34212 0%, #c43f11 100%);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(242, 88, 34, 0.45);
}