/* ========================================
   CUSTOMER MOBILE RESPONSIVE CSS
   Optimized for Customer Billing Portal
   ======================================== */

/* Import existing responsive styles */
@import url('./responsive.css');

/* ========================================
   APP SHELL STYLES (MOBILE FIRST DESKTOP)
   ======================================== */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    min-height: 100vh !important;
    margin: 0 !important;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

/* The Mobile Container simulating a phone screen */
.mobile-app-wrapper {
    width: 100%;
    max-width: 480px; /* Mobile width limit */
    margin: 0 auto;
    background-color: #f8f9fa; /* Light content background */
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5); /* Shadow to separate from background */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Ensure the body inside the wrapper has padding for the bottom nav */
.mobile-app-wrapper {
    padding-bottom: 80px;
}

/* Navbar customization for App Shell */
.mobile-app-nav {
    position: fixed !important;
    bottom: 0;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 480px !important;
    border-radius: 0 !important;
    z-index: 1030;
    background-color: #0B1437 !important;
    border-top: 1px solid rgba(255,255,255,0.1) !important;
    padding-bottom: env(safe-area-inset-bottom);
}

/* Hide scrollbar for cleaner UI */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: transparent; 
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2); 
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4); 
}

/* ========================================
   CUSTOMER SPECIFIC MOBILE STYLES
   ======================================== */

/* Force mobile styles even on desktop within the wrapper */
.mobile-app-wrapper .container {
    padding-left: 15px;
    padding-right: 15px;
}

.mobile-app-wrapper .card {
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: none;
    margin-bottom: 15px;
}

.mobile-app-wrapper .btn {
    border-radius: 50px; /* Pill buttons for app feel */
}

/* Typography adjustments for mobile feel */
.mobile-app-wrapper h4, 
.mobile-app-wrapper h5 {
    letter-spacing: -0.5px;
}

/* ========================================
   SHARED LIST/CARD STYLES (FROM INVOICES)
   ======================================== */
.app-list-item {
    padding: .5rem 0;
}
.app-details-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    width: 100%;
    margin: 0 -.5rem;
}
.app-detail-row {
    display: grid;
    grid-template-columns: minmax(120px, 40%) 12px 1fr;
    align-items: center;
    padding: .6rem .9rem;
    border-bottom: 1px solid #e9ecef;
}
.app-detail-row:last-child {
    border-bottom: none;
}
.app-label {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
}
.app-sep {
    color: #adb5bd;
    text-align: center;
}
.app-value {
    text-align: left;
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    word-break: break-word;
}
