main.container {
max-width: 1200px;
width: 100%;
}
#benchmark-content {
width: 100%;
}
.benchmark-list {
width: 100%;
}
#benchmark-cards {
width: 100%;
}
.loading {
text-align: center;
padding: 4rem 2rem;
color: var(--text-secondary);
}
.loading-spinner {
width: 64px;
height: 64px;
border: 4px solid var(--border-color);
border-top-color: var(--primary-color);
border-radius: 50%;
animation: spin 1s linear infinite;
margin: 0 auto 2rem;
}
@keyframes spin {
to { transform: rotate(360deg); }
}
.error {
text-align: center;
padding: 4rem 2rem;
}
.error-icon {
font-size: 4rem;
margin-bottom: 1rem;
}
.error h2 {
margin-bottom: 0.5rem;
color: var(--text-primary);
}
.error p {
color: var(--text-secondary);
}
.benchmark-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 1rem;
margin-bottom: 3rem;
width: 100%;
}
.summary-card {
background: var(--card-bg);
border: 2px solid var(--border-color);
border-radius: 12px;
padding: 1.5rem;
text-align: center;
transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.summary-card:hover {
transform: translateY(-4px);
box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
border-color: rgba(138, 43, 226, 0.5);
}
.summary-card h3 {
margin: 0 0 1rem 0;
font-size: 0.95rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 600;
}
.summary-value {
font-size: 2rem;
font-weight: 800;
color: var(--primary-color);
margin: 0 0 0.5rem 0;
line-height: 1;
}
.summary-label {
font-size: 0.85rem;
color: var(--text-secondary);
margin-top: 0.5rem;
font-weight: 500;
}
.type-card .summary-value {
font-size: 1.75rem;
}
.type-card h3 {
font-size: 0.8rem;
}
.historical-section {
margin-bottom: 3rem;
background: var(--card-bg);
border: 2px solid var(--border-color);
border-radius: 12px;
padding: 2rem;
}
.historical-section h2 {
margin: 0 0 1.5rem 0;
color: var(--text-primary);
font-size: 1.75rem;
}
.time-range-selector {
display: flex;
gap: 0.75rem;
margin-bottom: 1.5rem;
flex-wrap: wrap;
}
.time-range-btn {
padding: 0.5rem 1rem;
border: 2px solid var(--border-color);
background: var(--bg-primary);
border-radius: 6px;
color: var(--text-primary);
font-weight: 600;
cursor: pointer;
transition: all 0.2s ease;
}
.time-range-btn:hover {
border-color: var(--primary-color);
transform: translateY(-2px);
}
.time-range-btn.active {
background: var(--primary-color);
border-color: var(--primary-color);
color: white;
}
.chart-container {
position: relative;
height: 400px;
margin-bottom: 1rem;
}
.chart-container canvas {
cursor: pointer;
}
.chart-legend {
text-align: center;
color: var(--text-secondary);
font-size: 0.9rem;
margin-top: 1rem;
}
.chart-legend p {
margin: 0;
}
.trend-badge {
display: inline-flex;
align-items: center;
gap: 0.25rem;
padding: 0.35rem 0.75rem;
border-radius: 6px;
font-size: 0.8rem;
font-weight: 700;
white-space: nowrap;
letter-spacing: 0.3px;
}
.trend-badge.improving {
background-color: #d1fae5;
color: #065f46;
border: 2px solid #10b981;
}
.trend-badge.degrading {
background-color: #fee2e2;
color: #991b1b;
border: 2px solid #ef4444;
}
.trend-badge.stable {
background-color: #e5e7eb;
color: #374151;
border: 2px solid #6b7280;
}
.benchmark-list {
margin-top: 3rem;
}
.benchmark-list h2 {
margin-bottom: 1.5rem;
color: var(--text-primary);
}
.benchmark-filter {
margin-bottom: 2rem;
}
.benchmark-filter input {
width: 100%;
padding: 0.875rem 1rem;
font-size: 1rem;
border: 2px solid var(--border-color);
border-radius: 8px;
background: var(--card-bg);
color: var(--text-primary);
transition: border-color 0.3s ease;
}
.benchmark-filter input:focus {
outline: none;
border-color: var(--primary-color);
}
.benchmark-filter input::placeholder {
color: var(--text-secondary);
opacity: 0.6;
}
#benchmark-cards {
display: grid;
gap: 3rem;
}
.benchmark-section {
margin-bottom: 2rem;
width: 100%;
}
.section-header {
margin: 0 0 1.5rem 0;
font-size: 1.75rem;
color: var(--text-primary);
font-weight: 700;
text-transform: capitalize;
padding-bottom: 0.75rem;
border-bottom: 3px solid var(--primary-color);
}
.section-summary {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
gap: 1.25rem;
margin-bottom: 2rem;
padding: 0;
background: transparent;
border: none;
}
.section-stat {
display: flex;
flex-direction: column;
gap: 0.5rem;
padding: 1.5rem;
background: var(--card-bg);
border: 2px solid var(--border-color);
border-radius: 10px;
text-align: center;
transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.section-stat:hover {
transform: translateY(-2px);
border-color: var(--primary-color);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.section-stat-link {
text-decoration: none;
color: inherit;
cursor: pointer;
}
.section-stat-link:hover {
transform: translateY(-3px);
box-shadow: 0 6px 16px rgba(138, 43, 226, 0.15);
}
.section-stat-link .stat-sublabel {
text-decoration: underline;
text-decoration-color: transparent;
transition: text-decoration-color 0.2s ease;
}
.section-stat-link:hover .stat-sublabel {
text-decoration-color: var(--primary-color);
}
.stat-label {
font-size: 0.75rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.8px;
font-weight: 700;
opacity: 0.7;
}
.stat-value {
font-size: 1.75rem;
font-weight: 800;
color: var(--primary-color);
line-height: 1.1;
}
.stat-sublabel {
font-size: 0.8rem;
color: var(--text-secondary);
font-weight: 500;
margin-top: 0.25rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
opacity: 0.8;
}
.section-summary-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
}
.benchmark-section-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
gap: 1.5rem;
margin-top: 1.5rem;
width: 100%;
}
.benchmark-subsection {
grid-column: 1 / -1;
margin-bottom: 1rem;
}
.subsection-header {
margin: 0 0 1rem 0;
font-size: 1.25rem;
color: var(--text-primary);
font-weight: 600;
padding-bottom: 0.5rem;
border-bottom: 2px solid var(--border-color);
}
.benchmark-subsection-cards {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
gap: 1rem;
margin-top: 1rem;
width: 100%;
}
.benchmark-card {
background: var(--card-bg);
border: 1px solid var(--border-color);
border-radius: 12px;
padding: 1.75rem;
transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
scroll-margin-top: 120px;
}
.benchmark-card:hover {
transform: translateY(-2px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
border-color: var(--primary-color);
}
.benchmark-header {
margin-bottom: 1.5rem;
}
.benchmark-name {
margin: 0;
font-size: 1.25rem;
color: var(--text-primary);
font-weight: 600;
}
.benchmark-section-cards > .benchmark-card .benchmark-name {
display: block;
background: var(--primary-color);
color: white;
padding: 0.75rem 1rem;
border-radius: 6px 6px 0 0;
text-align: center;
font-weight: 700;
margin: -1.75rem -1.75rem 1rem -1.75rem;
}
.benchmark-subsection h4.benchmark-name {
display: block;
background: var(--primary-color);
color: white;
padding: 0.5rem 0.75rem;
border-radius: 6px 6px 0 0;
text-align: center;
font-weight: 600;
font-size: 1rem;
margin: -1.75rem -1.75rem 1rem -1.75rem;
}
.benchmark-metrics {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 1.5rem;
margin-bottom: 1.5rem;
}
.metric {
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.metric-label {
font-size: 0.875rem;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
font-weight: 600;
}
.metric-value {
font-size: 1.5rem;
font-weight: 700;
color: var(--primary-color);
line-height: 1.2;
}
.metric-percent {
font-size: 0.875rem;
color: var(--text-secondary);
font-weight: 500;
}
.benchmark-bar {
height: 8px;
background: var(--bg-secondary);
border-radius: 4px;
overflow: hidden;
position: relative;
}
.benchmark-bar-fill {
height: 100%;
background: var(--gradient);
transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 0 8px rgba(138, 43, 226, 0.3);
}
@media (max-width: 1024px) {
.benchmark-summary {
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.section-summary {
grid-template-columns: repeat(2, 1fr);
}
.stat-value {
font-size: 1.5rem;
}
}
@media (max-width: 768px) {
.benchmark-summary {
grid-template-columns: 1fr;
}
.section-summary {
grid-template-columns: 1fr;
}
.benchmark-metrics {
grid-template-columns: 1fr;
}
.summary-value {
font-size: 2rem;
}
.metric-value {
font-size: 1.25rem;
}
.stat-value {
font-size: 1.5rem;
}
}