/**
 * Water Jar Delivery & Payment Tracker
 * Responsive Adaptations & Desktop Styling
 */

/* Mobile First Base (< 768px) */
@media (max-width: 767px) {
  body {
    padding-bottom: 90px !important;
  }

  .app-container {
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    box-shadow: none !important;
  }

  .bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 72px !important;
    z-index: 9999 !important;
  }
}

/* Tablet & Desktop (>= 768px) */
@media (min-width: 768px) {
  body {
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    justify-content: center !important;
    min-height: 100vh !important;
    background: #04070e !important;
    padding-bottom: 90px !important;
  }

  .app-container {
    width: 100% !important;
    max-width: 480px !important;
    min-height: 100vh !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.8) !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative !important;
    background: rgba(7, 11, 20, 0.95) !important;
  }

  .bottom-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 480px !important;
    height: 72px !important;
    z-index: 9999 !important;
    background: rgba(9, 13, 22, 0.97) !important;
    backdrop-filter: blur(24px) !important;
    -webkit-backdrop-filter: blur(24px) !important;
    border-top: 1px solid rgba(56, 189, 248, 0.25) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.8) !important;
  }
}

/* Small Screens / Compact Phones */
@media (max-width: 380px) {
  .stats-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .stat-item {
    padding: 10px 4px;
  }

  .stat-value {
    font-size: 1rem;
  }

  .balance-amount {
    font-size: 2.2rem;
  }

  .stepper-display {
    font-size: 2.8rem;
  }

  .btn-step {
    width: 46px;
    height: 46px;
  }

  .btn-hero {
    padding: 14px 12px;
    font-size: 0.92rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: #fff !important;
    color: #000 !important;
    padding: 0 !important;
  }

  .top-header, .bottom-nav, .hero-actions, .quick-qty-group, .icon-btn, .btn-submit, .btn-secondary {
    display: none !important;
  }

  .app-container {
    max-width: 100% !important;
    box-shadow: none !important;
    background: #fff !important;
    border: none !important;
  }

  .card {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
    box-shadow: none !important;
  }

  .balance-amount, .stat-value, .activity-title, .brand-title {
    color: #000 !important;
    -webkit-text-fill-color: #000 !important;
  }
}
