/* Federated Inference Styles */

.hidden {
    display: none !important;
}

/* Privacy Notice */
.privacy-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.privacy-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8em;
    flex-shrink: 0;
}

.privacy-content h3 {
    color: #1565c0;
    margin-bottom: 10px;
}

.privacy-content ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.privacy-content li {
    padding: 5px 0;
    color: #0d47a1;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.form-control {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1em;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Progress Container */
.progress-container {
    margin: 20px 0;
}

.hospital-progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 10px;
}

.hospital-progress-item i:first-child {
    color: #667eea;
    font-size: 1.5em;
}

.hospital-progress-item span {
    flex: 1;
    font-weight: 600;
}

.hospital-progress-item i.fa-spinner {
    color: #ffc107;
}

.progress-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 15px;
}

/* Risk Score Display */
.risk-score-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

.risk-score-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 8px solid #28a745;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.5s;
}

.score-value {
    font-size: 3.5em;
    font-weight: bold;
    color: #333;
}

.score-label {
    font-size: 1em;
    color: #666;
    margin-top: 5px;
}

.risk-level-badge {
    padding: 10px 25px;
    border-radius: 25px;
    font-size: 1.2em;
    font-weight: bold;
}

.risk-level-badge.high {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.risk-level-badge.medium {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    color: #333;
}

.risk-level-badge.low {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%);
    color: white;
}

/* Result Summary */
.result-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.result-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.result-label {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.result-value {
    font-size: 1.5em;
    font-weight: bold;
    color: #333;
}

.result-value.status-resistant {
    color: #dc3545;
}

.result-value.status-possibly_resistant {
    color: #ffc107;
}

.result-value.status-susceptible {
    color: #28a745;
}

.confidence-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.7em;
    margin-left: 8px;
}

.confidence-badge.high {
    background: #d4edda;
    color: #155724;
}

.confidence-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.confidence-badge.low {
    background: #f8d7da;
    color: #721c24;
}

/* Recommendation Box */
.recommendation-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 10px;
    margin: 25px 0;
}

.recommendation-box h3 {
    color: #856404;
    margin-bottom: 12px;
}

.recommendation-box p {
    color: #333;
    line-height: 1.6;
}

/* Hospital Results */
.hospital-results {
    margin: 30px 0;
}

.hospital-results h3 {
    margin-bottom: 20px;
    color: #333;
}

.hospital-prediction {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.hospital-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hospital-name i {
    color: #667eea;
}

.hospital-pred-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.pred-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: white;
    border-radius: 8px;
}

.pred-label {
    color: #666;
    font-size: 0.9em;
}

.pred-value {
    font-weight: 600;
    color: #333;
}

.pred-value.risk-high {
    color: #dc3545;
}

.pred-value.risk-medium {
    color: #ffc107;
}

.pred-value.risk-low {
    color: #28a745;
}

/* Privacy Verification */
.privacy-verification {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 12px;
    padding: 25px;
    margin-top: 30px;
}

.privacy-verification h3 {
    color: #2e7d32;
    margin-bottom: 20px;
}

.privacy-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.privacy-check {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: white;
    border-radius: 8px;
}

.privacy-check i {
    color: #28a745;
    font-size: 1.2em;
}

.privacy-check span {
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .result-summary {
        grid-template-columns: 1fr;
    }

    .hospital-pred-details {
        grid-template-columns: 1fr;
    }

    .risk-score-circle {
        width: 150px;
        height: 150px;
    }

    .score-value {
        font-size: 2.5em;
    }
}
