/* ============================================
   AI SEARCH TRAFFIC RISK CALCULATOR CSS
   ============================================ */

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
    text-align: left;
}

.section-title {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 20px;
    background: var(--accent);
    border-radius: 4px;
}

.form-group {
    margin-bottom: 20px;
}

.help-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.4);
    margin-top: 6px;
    display: block;
}

/* Dashboard Views */
#dashboardView {
    display: none;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    text-align: left;
}

.export-actions {
    display: flex;
    gap: 12px;
}

/* Gauge Highlights */
.risk-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.risk-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.risk-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.risk-card.critical::before { background: #ef4444; }
.risk-card.high::before { background: #f59e0b; }
.risk-card.moderate::before { background: var(--accent); }
.risk-card.safe::before { background: #10b981; }

.risk-label {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.risk-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: #fff;
}

.risk-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

/* Main Grid */
.dash-main-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
    text-align: left;
}

.dash-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
}

.chart-wrapper {
    position: relative;
    height: 320px;
    width: 100%;
    margin-top: 24px;
}

.card-header {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

.card-sub {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
    margin-bottom: 20px;
}

/* Action Plan Grid */
.action-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.action-row {
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.05);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.action-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-time {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    background: rgba(29, 124, 110, 0.1);
    padding: 4px 10px;
    border-radius: 100px;
}

.action-task h4 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 4px;
}

.action-task p {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.6);
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width: 1024px) {
    .risk-highlights { grid-template-columns: 1fr 1fr; }
    .dash-main-grid { grid-template-columns: 1fr; }
}
@media(max-width: 600px) {
    .risk-highlights { grid-template-columns: 1fr; }
    .export-actions { display: none; }
}
