/* General Setup for Mobile */ body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; padding: 0 0 70px 0; /* Space for the fixed bottom menu */ background-color: #f0f2f5; color: #333; /* Mobile focus: Ensure body takes full screen width */ overflow-x: hidden; } /* Container is now full width on mobile */ .dashboard-container { width: 100%; padding: 10px 15px; /* Thoda kam padding */ margin: 0 auto; box-sizing: border-box; /* Padding included in width */ } /* Header - More compact */ .header { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; margin-bottom: 20px; border-bottom: 1px solid #eee; /* Clear separation */ } .header h1 { font-size: 1.5em; /* Smaller font for mobile */ color: #1a73e8; margin: 0; } .user-profile { font-size: 0.9em; padding: 5px 10px; background: #e9f5ff; border-radius: 20px; } .user-profile i { font-size: 1.2em; margin-right: 5px; } /* KPI Grid and Cards - Now a single vertical column for mobile */ .kpi-grid { /* Auto-fit is removed; now cards stack vertically */ display: flex; flex-direction: column; /* Stack vertically */ gap: 15px; /* Thoda kam gap */ margin-bottom: 25px; } .card { background: #ffffff; border-radius: 12px; padding: 20px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Lighter shadow */ transition: transform 0.3s ease, box-shadow 0.3s ease; } /* Hover effect remains, but less noticeable on touch screens */ .card:hover { transform: translateY(-3px) scale(1.01); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); } .card h3 { font-size: 0.9em; opacity: 0.9; } .card .amount { font-size: 1.8em; /* Smaller amount font */ } .card .icon { font-size: 2.5em; /* Smaller icon */ } /* Color Cards (Gradients remain) */ .total-earnings-card { background: linear-gradient(135deg, #4CAF50, #8BC34A); } .monthly-target-card { background: linear-gradient(135deg, #2196F3, #00BCD4); } .referral-bonus-card { background: linear-gradient(135deg, #FF9800, #FFC107); } .pending-payout-card { background: linear-gradient(135deg, #F44336, #E91E63); } /* Main Content Sections */ .main-content, .recent-activity { padding: 15px; /* Reduced padding */ border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); margin-bottom: 15px; } .main-content h2, .recent-activity h2 { font-size: 1.2em; border-bottom: 1px solid #eee; padding-bottom: 10px; margin-top: 0; } .content-placeholder { height: 200px; /* Chart area is smaller */ } /* Recent activity list adjustments */ .recent-activity li { font-size: 0.95em; padding: 8px 0; } /* Bottom Navigation - Key for Mobile View */ .bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background-color: #ffffff; display: flex; justify-content: space-around; padding: 8px 0; /* Thoda kam padding */ box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.15); /* Thoda zyada shadow */ z-index: 1000; } .nav-item { font-size: 0.65em; flex: 1; min-width: 50px; /* Ensures minimum touch area */ } .main-action { width: 55px; height: 55px; font-size: 1.5em; transform: translateY(-40%); /* Slightly less lift */ } /* Hide bottom nav on desktop/large screens (Optional but good practice) */ @media (min-width: 600px) { /* Agar screen 600px se badi ho, toh cards do column mein dikhenge */ .kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; } .bottom-nav { display: none; } body { padding-bottom: 0; } }