/* Material Design 3 - Blue White Gray Theme */ :root { --md-sys-color-primary: #1976D2; --md-sys-color-primary-container: #E3F2FD; --md-sys-color-on-primary: #FFFFFF; --md-sys-color-secondary: #546E7A; --md-sys-color-secondary-container: #ECEFF1; --md-sys-color-surface: #FFFFFF; --md-sys-color-surface-variant: #F5F5F5; --md-sys-color-background: #FAFAFA; --md-sys-color-on-surface: #1C1B1F; --md-sys-color-outline: #BDBDBD; --md-sys-color-shadow: rgba(0, 0, 0, 0.1); } /* General Body Styles */ body { font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif; margin: 0; padding: 20px; background: var(--md-sys-color-background); color: var(--md-sys-color-on-surface); line-height: 1.6; min-height: 100vh; } /* Main Container */ .container { max-width: 95%; margin: 20px auto; background-color: var(--md-sys-color-surface); padding: 40px; border-radius: 28px; box-shadow: 0 4px 16px var(--md-sys-color-shadow); animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1); } @keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } } /* Dashboard Layout */ .dashboard-layout { display: flex; flex-direction: column; gap: 32px; } .main-content { width: 100%; min-width: 0; } .sidebar-content { width: 100%; min-width: 0; } /* Typography - Material Design 3 */ h1, h2 { color: var(--md-sys-color-on-surface); padding-bottom: 10px; margin-top: 0; } h1 { text-align: center; font-size: 2.5em; margin-bottom: 30px; color: var(--md-sys-color-primary); font-weight: 500; letter-spacing: 0; } h2 { font-size: 1.5em; margin-top: 40px; margin-bottom: 20px; border-bottom: 2px solid var(--md-sys-color-primary); padding-bottom: 12px; color: var(--md-sys-color-on-surface); font-weight: 500; display: flex; align-items: center; gap: 8px; } /* Info Banners - MD3 Style */ .info-item { background: var(--md-sys-color-primary-container); padding: 16px 24px; border-radius: 16px; margin-bottom: 24px; font-size: 0.95em; border-left: 4px solid var(--md-sys-color-primary); box-shadow: 0 1px 3px var(--md-sys-color-shadow); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .info-item:hover { box-shadow: 0 2px 6px var(--md-sys-color-shadow); } .info-item strong { color: var(--md-sys-color-primary); font-weight: 500; } /* Tabs - MD3 Style */ .tabs { border-bottom: 1px solid var(--md-sys-color-outline); display: flex; margin-bottom: 32px; flex-wrap: wrap; gap: 8px; } .tabs button { background: none; border: none; outline: none; padding: 16px 24px; cursor: pointer; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); font-size: 14px; color: var(--md-sys-color-on-surface); border-radius: 16px 16px 0 0; margin-bottom: -1px; font-weight: 500; position: relative; } .tabs button::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--md-sys-color-primary); transform: scaleX(0); transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .tabs button:hover { background: var(--md-sys-color-surface-variant); } .tabs button.active { color: var(--md-sys-color-primary); font-weight: 600; } .tabs button.active::after { transform: scaleX(1); } .tab-content { display: none; padding-top: 10px; } .tab-content.active { display: block; } /* Summary Cards - MD3 Style */ .summary-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin: 32px 0; } .card { background: var(--md-sys-color-surface); padding: 24px; border-radius: 16px; text-align: center; border: 1px solid var(--md-sys-color-outline); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 3px var(--md-sys-color-shadow); } .card:hover { box-shadow: 0 4px 12px var(--md-sys-color-shadow); transform: translateY(-4px); border-color: var(--md-sys-color-primary); } .card h3 { margin: 0 0 16px; font-size: 0.875rem; color: var(--md-sys-color-secondary); font-weight: 500; letter-spacing: 0.1px; } .card p { margin: 0; font-size: 2rem; font-weight: 600; color: var(--md-sys-color-primary); line-height: 1.2; } /* Tables - MD3 Style */ table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 0.875rem; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 3px var(--md-sys-color-shadow); border: 1px solid var(--md-sys-color-outline); } th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--md-sys-color-outline); } th { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); font-weight: 500; font-size: 0.875rem; letter-spacing: 0.1px; } tbody tr { transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1); } tr:nth-child(even) { background-color: var(--md-sys-color-surface-variant); } tbody tr:hover { background-color: var(--md-sys-color-primary-container); } /* Chart Container - MD3 Style */ .chart-container { position: relative; width: 100%; padding: 24px; background: var(--md-sys-color-surface); border-radius: 16px; box-shadow: 0 1px 3px var(--md-sys-color-shadow); border: 1px solid var(--md-sys-color-outline); transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); } .chart-container:hover { box-shadow: 0 4px 12px var(--md-sys-color-shadow); } .chart-container canvas { max-width: 100%; height: auto !important; } /* Chart Wrapper for dynamic charts */ .chart-wrapper { position: relative; width: 100%; height: 350px; padding: 24px; background: var(--md-sys-color-surface); border-radius: 16px; box-shadow: 0 1px 3px var(--md-sys-color-shadow); border: 1px solid var(--md-sys-color-outline); } .chart-wrapper canvas { max-height: 300px !important; } .chart-grid { display: flex; flex-direction: column; gap: 24px; margin-top: 24px; } /* Time Range Buttons - MD3 Filled Button */ .time-range-btn { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); border: none; padding: 10px 24px; margin: 0 8px; border-radius: 20px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 1px 3px var(--md-sys-color-shadow); } .time-range-btn:hover { box-shadow: 0 2px 6px var(--md-sys-color-shadow); } .time-range-btn.active { background: var(--md-sys-color-secondary); box-shadow: 0 2px 6px var(--md-sys-color-shadow); } /* Statistics Badge - MD3 */ .stat-badge { display: inline-block; padding: 4px 12px; background: var(--md-sys-color-primary-container); color: var(--md-sys-color-primary); border-radius: 16px; font-size: 0.875rem; font-weight: 500; margin-left: 8px; } /* Loading Animation */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } .loading { animation: pulse 1.5s ease-in-out infinite; } /* Scrollbar Styling - MD3 */ ::-webkit-scrollbar { width: 12px; height: 12px; } ::-webkit-scrollbar-track { background: var(--md-sys-color-surface-variant); border-radius: 8px; } ::-webkit-scrollbar-thumb { background: var(--md-sys-color-primary); border-radius: 8px; border: 2px solid var(--md-sys-color-surface-variant); } ::-webkit-scrollbar-thumb:hover { background: var(--md-sys-color-secondary); } /* Footer - MD3 */ .footer { text-align: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--md-sys-color-outline); font-size: 0.875rem; color: var(--md-sys-color-secondary); } .footer p { margin: 8px 0; } /* Responsive Design */ @media (max-width: 768px) { .container { padding: 20px; border-radius: 16px; } h1 { font-size: 2em; } h2 { font-size: 1.25em; } .summary-cards { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; } .card { padding: 16px; } .card h3 { font-size: 0.8rem; margin-bottom: 12px; } .card p { font-size: 1.5rem; } table { font-size: 0.8rem; } th, td { padding: 12px 8px; } .tabs button { padding: 12px 16px; font-size: 13px; } .time-range-btn { padding: 8px 16px; margin: 4px; font-size: 13px; } .chart-wrapper, .chart-container { height: 250px; } } @media (max-width: 480px) { .summary-cards { grid-template-columns: 1fr 1fr; } .card p { font-size: 1.25rem; } }