/* Base */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #333; line-height: 1.6; }

/* Navbar */
.navbar { background: #1a1a2e; color: #fff; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-brand a { color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; margin-left: 20px; font-size: 14px; }
.nav-links a:hover { color: #fff; }

/* Main */
.main-content { max-width: 1200px; margin: 24px auto; padding: 0 16px; }

/* Stats Grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.stat-value { font-size: 32px; font-weight: 700; }
.stat-label { font-size: 13px; color: #666; margin-top: 4px; }
.stat-pass .stat-value { color: #28a745; }
.stat-fail .stat-value { color: #dc3545; }

/* Section */
.section { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 24px; }
.section h2 { font-size: 18px; margin-bottom: 16px; }

/* Failure List */
.failure-list { display: flex; flex-direction: column; gap: 8px; }
.failure-item { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff8f8; border-radius: 6px; border-left: 3px solid #dc3545; }
.failure-id { font-family: monospace; font-size: 12px; color: #666; min-width: 80px; }
.failure-name { flex: 1; font-size: 14px; }
.failure-cat { font-size: 12px; color: #888; }
.failure-count { font-weight: 600; color: #dc3545; }

/* Filter Bar */
.filter-bar { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; flex: 1; min-width: 200px; }
.filter-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; background: #fff; }

/* Buttons */
.btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; text-decoration: none; background: #1a1a2e; color: #fff; }
.btn:hover { opacity: 0.9; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn-outline { background: transparent; border: 1px solid #1a1a2e; color: #1a1a2e; }
.btn-filter { background: #4a4a6a; }
.btn-clear { background: transparent; color: #666; border: 1px solid #ddd; }

/* Badge */
.badge { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-pass { background: #d4edda; color: #155724; }
.badge-fail { background: #f8d7da; color: #721c24; }
.badge-critical { background: #f8d7da; color: #721c24; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* Table */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { text-align: left; padding: 10px 12px; background: #f8f9fa; border-bottom: 2px solid #dee2e6; font-size: 12px; text-transform: uppercase; color: #666; letter-spacing: 0.5px; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid #eee; }
.data-table tr:hover { background: #f8f9fa; }
.cell-email { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eee; }
.page-info { font-size: 14px; color: #666; }

/* Empty State */
.empty-state { text-align: center; padding: 40px; color: #888; }

/* Report Header */
.report-header { margin-bottom: 24px; }
.back-link { font-size: 14px; color: #4a4a6a; text-decoration: none; display: inline-block; margin-bottom: 12px; }
.back-link:hover { color: #1a1a2e; }
.report-header h1 { font-size: 24px; margin-bottom: 8px; }
.report-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: #666; }

/* Report Summary */
.report-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-bottom: 24px; }
.summary-item { background: #fff; padding: 16px; border-radius: 8px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.summary-label { font-size: 12px; color: #666; text-transform: uppercase; display: block; }
.summary-value { font-size: 20px; font-weight: 600; display: block; margin-top: 4px; }
.summary-critical .summary-value { color: #dc3545; }
.summary-warning .summary-value { color: #ffc107; }
.summary-info .summary-value { color: #17a2b8; }
.summary-pass .summary-value { color: #28a745; }

/* Export Bar */
.export-bar { margin-bottom: 24px; display: flex; gap: 8px; }

/* Check Cards */
.check-category { background: #fff; border-radius: 8px; padding: 24px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); margin-bottom: 16px; }
.category-title { font-size: 18px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #eee; }
.check-card { padding: 14px; margin-bottom: 10px; border-radius: 6px; border-left: 4px solid; }
.check-passed { border-left-color: #28a745; background: #f8fff8; }
.check-critical { border-left-color: #dc3545; background: #fff8f8; }
.check-warning { border-left-color: #ffc107; background: #fffdf0; }
.check-info { border-left-color: #17a2b8; background: #f0fafc; }
.check-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.check-id { font-family: monospace; font-size: 12px; color: #666; }
.check-name { font-weight: 500; }
.check-message { margin-top: 6px; font-size: 14px; }
.check-remediation { margin-top: 8px; padding: 8px 12px; background: rgba(0,0,0,0.03); border-radius: 4px; font-size: 13px; color: #555; }
.check-details { margin-top: 8px; }
.check-details summary { cursor: pointer; font-size: 13px; color: #666; }
.check-details pre { margin-top: 6px; padding: 8px; background: #f8f9fa; border-radius: 4px; font-size: 12px; overflow-x: auto; white-space: pre-wrap; }

/* Footer */
.footer { text-align: center; padding: 24px; color: #999; font-size: 12px; }
