
/* Hidden utility */
.hidden {
    display: none !important;
}

/* Input group with reset button */
.cvss-input-group {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.cvss-input-group .form-control {
    flex: 1;
    min-width: 0;
}

.btn-reset {
    background: #f2f2f2;
    border: .05rem solid #999;
    border-radius: .2rem;
    color: #444;
    padding: 0 18px;
    font-weight: 600;
    letter-spacing: .5px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    display: inline-flex;
    align-items: center;
}

.btn-reset:hover {
    background: #666;
    color: #fff;
    border-color: #666;
}

.btn-reset:active {
    background: #060;
    color: #fff;
    border-color: #060;
}

h4.text-center {
    background: #666666;
    color: #ffffff;
    padding: 0.35rem 0.6rem;
    margin: 0;
    border-radius: 0.3rem 0.3rem 0 0;
    letter-spacing: .5px;
    font-weight: 600;
}

.metric-type {
    background-color: #f2f2f2;
    border-radius: 0.3rem;
    margin: 0 0 1rem 0;
    border: 1px solid #666;
}

.metric-group-header {
    text-align: center;
    font-weight: 600;
    margin: 18px 0 8px;
    color: #333;
}

.metric-group {
    padding: 4px 12px 18px;
    background:#f2f2f2;
    border-radius: 0 0 .3rem .3rem;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
}

.metric-label {
    width: 190px;
    text-align: right;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    line-height: 1.2;
}

.metric-label abbr,
.metric-options button abbr {
    text-decoration: none;
    border-bottom: 1px dotted #555;
    cursor: help;
}

.metric-options {
    display: flex;
    gap: 6px;
    flex: 1;
    flex-wrap: nowrap;
}

.metric-options .btn {
    background: #f2f2f2;
    border: .05rem solid #999;
    border-radius: .2rem;
    color: #444;
    padding: 6px 14px;
    font-size: 13px;
    line-height: 1.15;
    min-width: 150px;
    text-align: left;
    font-weight: 500;
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
    white-space: nowrap;
}

.metric-options .btn:hover {
    background: #666;
    color: #fff;
    border-color: #666;
}

.metric-options .btn.active {
    background: #060;
    border-color: #060;
    color: #fff;
}

@media (max-width: 1100px) {
    .metric-options {
        flex-wrap: wrap;
    }
    .metric-options .btn {
        flex: 1 1 calc(50% - 6px);
        min-width: 140px;
    }
}

@media (max-width: 780px) {
    .metric-row {
        flex-direction: column;
        align-items: stretch;
    }
    .metric-label {
        width: auto;
        text-align: left;
        padding: 0 0 4px;
    }
    .metric-options .btn {
        flex: 1 1 100%;
        min-width: unset;
    }
}

h5.score-line {
    margin: 0 0 .4rem;
    font-size: .95rem;
    font-weight: 600;
}

mark#cvss-score-mark {
    overflow-wrap: break-word;
    background: #090;
    border: .05rem solid #090;
    border-radius: .5rem;
    color: #fff;
    font-size: large;
    padding: .4rem .6rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.severity-Low { background:#ffeb3b !important; border-color:#ffeb3b !important; color:#000 !important;}
.severity-Medium { background:#ff9800 !important; border-color:#ff9800 !important; }
.severity-High { background:#f44336 !important; border-color:#f44336 !important; }
.severity-Critical { background:#9c27b0 !important; border-color:#9c27b0 !important; }
.severity-None { background:#6c757d !important; border-color:#6c757d !important; }

#cvss_vector {
    font-family: monospace;
}

.metric-group + .metric-group {
    margin-top: 24px;
    border-top: 1px solid #ddd;
    padding-top: 16px;
}

#cvss-score-display {
    transition: opacity .25s ease;
    opacity: 0;
}

#cvss-score-display.active {
    opacity: 1;
}

/* Reveal animation */
.cvss-revealed {
    animation: cvssFadeIn .25s ease;
}

@keyframes cvssFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}
.has-error .check-box {
    outline: 2px solid #d9534f; /* Bootstrap danger color */
    outline-offset: 2px;
}

.has-error .confirmation-cvss-tos label {
    color: #a94442; /* Bootstrap danger text */
}
