:root {
    --color-low: #4CAF50;
    --color-moderate: #FFC107;
    --color-high: #F44336;
    --color-kubernetes: #326CE5;
    --color-gitlab: #FC6D26;
    --color-user: #2ca02c;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
}

.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Form styles */
.form-group { margin-bottom: 0.4rem; }
.form-group label { display: block; margin-bottom: 0.25rem; font-weight: 500; font-size: 0.9rem; }
.form-group input { width: 100%; padding: 0.4rem; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9rem; }
.form-group input:focus { outline: none; border-color: #326CE5; }
.form-group input::placeholder { color: #999; font-size: 0.8rem; font-style: italic; }
.form-group small { color: #666; font-size: 0.8rem; display: block; margin-top: 2px; }

/* Button styles */
.btn { display: inline-block; padding: 0.5rem 0.9rem; border: none; border-radius: 4px; font-size: 0.9rem; cursor: pointer; }
.btn-primary { background: #326CE5; color: white; }
.btn-primary:hover { background: #2557b8; }
.btn-secondary { background: #6c757d; color: white; }
.btn-secondary:hover { background: #545b62; }
.btn-success { background: #28a745; color: white; }
.btn-success:hover { background: #1e7e34; }

.button-group { display: flex; gap: 0.3rem; margin-top: 0.75rem; }

/* Legend styles */
.legend { display: flex; flex-wrap: wrap; gap: 1.5rem; padding: 0.75rem 1rem; background: #f9f9f9; border-radius: 4px; justify-content: center; }
.legend-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; font-weight: 500; }
.legend-diamond { width: 10px; height: 10px; background: var(--color-kubernetes); transform: rotate(45deg); border: 1px solid #000; }
.legend-square { width: 10px; height: 10px; background: var(--color-gitlab); border: 1px solid #000; }
.legend-circle { width: 10px; height: 10px; background: var(--color-user); border-radius: 50%; border: 1px solid #000; }

/* Metric results */
.metric-result { display: flex; justify-content: space-between; align-items: center; padding: 0.2rem 0.75rem; margin-bottom: 0.15rem; background: #f9f9f9; border-radius: 4px; border-left: 4px solid #ddd; }
.metric-result.low { border-left-color: var(--color-low); }
.metric-result.moderate { border-left-color: var(--color-moderate); }
.metric-result.high { border-left-color: var(--color-high); }
.metric-result .name { font-weight: 500; font-size: 0.9rem; }
.metric-result .value { font-family: monospace; font-size: 0.9rem; }

.zone-badge { display: inline-block; padding: 0.15rem 0.35rem; border-radius: 3px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; }
.zone-badge.low { background: var(--color-low); color: white; }
.zone-badge.moderate { background: var(--color-moderate); color: #333; }
.zone-badge.high { background: var(--color-high); color: white; }

/* Tabs */
.tabs { display: flex; border-bottom: 2px solid #eee; margin-bottom: 1rem; }
.tab { padding: 0.75rem 1.5rem; cursor: pointer; border: none; background: none; font-size: 1rem; color: #666; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab:hover { color: #333; }
.tab.active { color: #326CE5; border-bottom-color: #326CE5; }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Tables */
.baseline-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.85rem; }
.baseline-table th, .baseline-table td { padding: 0.35rem 0.5rem; text-align: left; border-bottom: 1px solid #eee; font-weight: normal; vertical-align: top; }
.baseline-table th { background: #f5f5f5; font-weight: 500; }
.baseline-table td strong { font-weight: 500; }
.baseline-table small { font-size: 0.7rem; color: #666; display: block; margin-top: 0.15rem; text-align: left; }
.k8s-color { color: var(--color-kubernetes); font-weight: 500; }
.gitlab-color { color: var(--color-gitlab); font-weight: 500; }

/* Alerts */
.alert { padding: 1rem; border-radius: 4px; margin-bottom: 1rem; font-size: 0.9rem; }
.alert-info { background: #e3f2fd; color: #1565c0; }

/* Community projects */
.community-projects { max-height: 300px; overflow-y: auto; }
.project-item { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem; border-bottom: 1px solid #eee; }
.project-item:hover { background: #f9f9f9; }

/* Radar chart */
.radar-container { height: 350px; margin-bottom: 1.5rem; }
