/* testcond.css - Stili specifici per il diagnostico condensatori ed ESR */

.capacitor-visual-box {
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-bottom: 12px;
    overflow: hidden;
}

.capacitor-visual-box svg {
    max-height: 100%;
    max-width: 100%;
    transition: transform 0.4s ease-in-out, filter 0.3s ease;
}

.capacitor-details-meta {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.4;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

/* Tabella ESR */
.esr-reference-table {
    width: 100%;
    border-collapse: collapse;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--text-primary);
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
    overflow: hidden;
}

.esr-reference-table th {
    background-color: var(--border-color);
    color: var(--accent-cyan);
    font-weight: bold;
    padding: 6px 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.esr-reference-table td {
    padding: 5px 4px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.esr-reference-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.02);
}

.esr-reference-table tr.highlight-row {
    background: rgba(6, 182, 212, 0.1) !important;
}

.esr-reference-table td.highlight-cell {
    background: rgba(6, 182, 212, 0.25) !important;
    color: var(--accent-cyan);
    font-weight: bold;
}

/* Card Verdetto Diagnostico */
.verdict-card {
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease-out;
}

.verdict-card.good {
    background: rgba(16, 185, 129, 0.05);
    border-left: 5px solid var(--accent-green);
}

.verdict-card.degraded {
    background: rgba(249, 115, 22, 0.05);
    border-left: 5px solid #f97316;
}

.verdict-card.bad {
    background: rgba(239, 68, 68, 0.05);
    border-left: 5px solid var(--accent-red);
}

.verdict-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.verdict-badge {
    font-family: monospace;
    font-weight: bold;
    font-size: 0.72rem;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.05em;
}

.verdict-card.good .verdict-badge {
    background-color: #064e3b;
    color: #a7f3d0;
    border: 1px solid var(--accent-green);
}

.verdict-card.degraded .verdict-badge {
    background-color: #7c2d12;
    color: #ffedd5;
    border: 1px solid #f97316;
}

.verdict-card.bad .verdict-badge {
    background-color: #7f1d1d;
    color: #fee2e2;
    border: 1px solid var(--accent-red);
}

.verdict-title {
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.verdict-card.good .verdict-title {
    color: #34d399;
}

.verdict-card.degraded .verdict-title {
    color: #fb923c;
}

.verdict-card.bad .verdict-title {
    color: #f87171;
}

.verdict-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.verdict-metric {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-family: monospace;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    padding-bottom: 4px;
}

.verdict-metric .metric-label {
    color: var(--text-secondary);
}

.verdict-metric .metric-val {
    font-weight: bold;
    color: var(--text-primary);
}

.verdict-description {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-top: 8px;
    font-style: italic;
}

/* Badge di stato per la cronologia */
.history-status-badge {
    font-size: 0.62rem;
    font-family: monospace;
    font-weight: bold;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 3px;
    margin-left: auto;
}

.history-status-badge.good {
    background: #064e3b;
    color: #a7f3d0;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.history-status-badge.degraded {
    background: #7c2d12;
    color: #ffedd5;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.history-status-badge.bad {
    background: #7f1d1d;
    color: #fee2e2;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}
