.container { padding: 20px; max-width: 1200px; margin: 0 auto; } .container h2 { margin-bottom: 30px; color: #333; font-size: 28px; font-weight: 600; } .loading, .error { display: flex; justify-content: center; align-items: center; min-height: 400px; font-size: 16px; } .error { flex-direction: column; background: #fee; border: 1px solid #fcc; padding: 40px; border-radius: 8px; text-align: center; } .error h3 { color: #c33; margin-bottom: 10px; } /* Overall Stats Grid */ .statsGrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 40px; } .statCard { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 24px; border-radius: 12px; text-align: center; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease; } .statCard:hover { transform: translateY(-2px); } .statCard h3 { margin: 0 0 12px 0; font-size: 14px; font-weight: 500; opacity: 0.9; text-transform: uppercase; letter-spacing: 0.5px; } .statValue { font-size: 32px; font-weight: 700; margin: 0; } /* Breakdown Sections */ .breakdownSection { margin-bottom: 40px; } .breakdownSection h3 { margin-bottom: 20px; color: #333; font-size: 22px; font-weight: 600; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; } .breakdownTable { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); } .tableHeader { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr 1.5fr 1fr 1.5fr; gap: 16px; padding: 16px 20px; background: #f8f9fa; font-weight: 600; font-size: 14px; color: #555; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #e0e0e0; } .tableRow { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr 1.5fr 1fr 1.5fr; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; font-size: 14px; transition: background-color 0.2s ease; } .tableRow:hover { background-color: #f8f9fa; } .tableRow:last-child { border-bottom: none; } .categoryName { font-weight: 600; color: #333; } .percentageCell { display: flex; flex-direction: column; gap: 4px; } .progressBar { width: 100%; height: 6px; background-color: #e0e0e0; border-radius: 3px; overflow: hidden; } .progressFill { height: 100%; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 3px; transition: width 0.3s ease; } .moreInfo { padding: 12px 20px; background: #f8f9fa; color: #666; font-size: 14px; text-align: center; font-style: italic; } /* Responsive Design */ @media (max-width: 768px) { .container { padding: 15px; } .statsGrid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 15px; } .statCard { padding: 16px; } .statValue { font-size: 24px; } .tableHeader, .tableRow { grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr 0.8fr 1fr 0.8fr 1fr; gap: 8px; padding: 12px 15px; font-size: 13px; } .breakdownSection h3 { font-size: 18px; } .container h2 { font-size: 24px; } } @media (max-width: 480px) { .statsGrid { grid-template-columns: 1fr; } .tableHeader, .tableRow { grid-template-columns: 1fr; gap: 4px; } .tableHeader span, .tableRow span, .tableRow .percentageCell { padding: 4px 0; } .tableHeader span:before { content: attr(data-label) ": "; font-weight: 700; display: none; } .tableRow span:before { content: attr(data-label) ": "; font-weight: 600; color: #666; display: inline; } .categoryName:before { content: ""; } .percentageCell { gap: 2px; } .progressBar { height: 4px; } }