/**
 * SCADA模态框样式
 */

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
}

.loading-spinner i {
    font-size: 2em;
    color: #3a9ad9;
    animation: scada-spin 1s linear infinite;
}

.alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.alert-modal.active {
    display: flex;
}

.alert-modal-content {
    background: #121826;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 10px;
    padding: 20px;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
    color: #ffffff;
}

.alert-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.alert-modal-header h3 {
    margin: 0;
    color: #ffffff;
}

.alert-modal-close {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #f1f5f9;
}

.alert-modal-close:hover {
    color: #ffffff;
}

#alert-modal-body,
.alert-modal-body {
    color: #f5f5f5;
}

#alert-modal-body p,
.alert-modal-body p {
    color: #f5f5f5;
    line-height: 1.55;
    margin: 0;
}

/* 弹窗告警卡片：强制深底 + 亮字（盖过任何内联浅色背景） */
#alert-modal-body .modal-alert-item,
.alert-modal-body .modal-alert-item {
    padding: 12px 14px;
    margin-bottom: 10px;
    border-left: 4px solid #ff9800;
    border-radius: 8px;
    background: #1e1e1e !important;
    color: #f5f5f5 !important;
}

#alert-modal-body .modal-alert-item.modal-alert-critical {
    background: #2a1515 !important;
    border-left-color: #f44336;
}

#alert-modal-body .modal-alert-item.modal-alert-warning {
    background: #2a2114 !important;
    border-left-color: #ff9800;
}

#alert-modal-body .modal-alert-item.modal-alert-info {
    background: #142218 !important;
    border-left-color: #4CAF50;
}

#alert-modal-body .modal-alert-meta,
.alert-modal-body .modal-alert-meta {
    font-weight: 700;
    margin-bottom: 6px;
    color: #ffffff !important;
}

#alert-modal-body .modal-alert-msg,
.alert-modal-body .modal-alert-msg {
    margin-bottom: 4px;
    color: #f0f0f0 !important;
    font-weight: 600;
}

#alert-modal-body .modal-alert-action,
.alert-modal-body .modal-alert-action {
    color: #e8c49a !important;
    font-style: italic;
    font-size: 0.92em;
}
