body {
    background-color: #f8f9fa;
}

.card {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.card-header h5 {
    margin: 0;
    color: #495057;
}

#resultContent {
    font-family: monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 500px;
    overflow-y: auto;
}

.input-group {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.btn-primary {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.badge {
    font-size: 0.875rem;
    padding: 0.35em 0.65em;
    margin-left: 0.5rem;
}

#loading {
    padding: 2rem 0;
}

.row p {
    margin-bottom: 0.75rem;
}

.card-body {
    padding: 1.25rem;
}

strong {
    color: #495057;
}

.alert {
    margin-top: 1rem;
}

/* 风险等级颜色 */
.risk-very-low { color: #198754; }
.risk-low { color: #0dcaf0; }
.risk-medium { color: #ffc107; }
.risk-high { color: #dc3545; }
.risk-very-high { color: #dc3545; font-weight: bold; }

/* Risk bar styles */
.riskbar {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
    height: 30px;
    border-radius: 4px;
    overflow: hidden;
}

.riskitem {
    flex: 1;
    height: 100%;
    position: relative;
    transition: all 0.3s ease;
    cursor: help;
    opacity: 0.5;
}

.riskitem.riskcurrent {
    opacity: 1;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
}

.riskitem.riskcurrent .value {
    margin-right: 5px;
}

.riskitem:hover {
    opacity: 1;
}

/* Risk level colors */
.risk-extremely-clean { background: green; }
.risk-clean { background: limegreen; }
.risk-neutral { background: rgb(178, 220, 94); }
.risk-slight { background: rgb(221, 221, 0); }
.risk-higher { background: rgb(255, 170, 0); }
.risk-extreme { background: red; }

/* Tooltip styles */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

[data-tooltip]:hover:before {
    visibility: visible;
    opacity: 1;
} 