/* ══════════════════════════════════════════
   Rainych 全局自定义弹窗
   ══════════════════════════════════════════ */
.rc-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    backdrop-filter: blur(2px);
}

.rc-overlay.active {
    opacity: 1;
    visibility: visible;
}

.rc-modal {
    background: linear-gradient(145deg, #1e293b, #1a2332);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 14px;
    width: 400px;
    max-width: 90vw;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(99, 102, 241, 0.08);
    transform: scale(0.92) translateY(10px);
    transition: transform 0.25s;
    overflow: hidden;
}

.rc-overlay.active .rc-modal {
    transform: scale(1) translateY(0);
}

/* 头部 */
.rc-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 22px 12px;
}

.rc-modal-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}

.rc-modal-icon.info    { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.rc-modal-icon.success { background: rgba(74, 222, 128, 0.15); color: #4ade80; }
.rc-modal-icon.warning { background: rgba(251, 191, 36, 0.15); color: #fbbf24; }
.rc-modal-icon.error   { background: rgba(248, 113, 113, 0.15); color: #f87171; }

.rc-modal-title {
    color: #e2e8f0;
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

/* 内容 */
.rc-modal-body {
    padding: 4px 22px 16px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

/* 输入框（prompt 模式） */
.rc-modal-input {
    width: 100%;
    padding: 8px 12px;
    margin-top: 10px;
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: #e2e8f0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.rc-modal-input:focus {
    border-color: rgba(99, 102, 241, 0.6);
}

/* 底部按钮区 */
.rc-modal-footer {
    display: flex;
    gap: 8px;
    padding: 12px 22px 18px;
    justify-content: flex-end;
}

.rc-btn {
    padding: 8px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.rc-btn-cancel {
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.3);
    color: #94a3b8;
}

.rc-btn-cancel:hover {
    background: rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
}

.rc-btn-ok {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
    color: #a5b4fc;
}

.rc-btn-ok:hover {
    background: rgba(99, 102, 241, 0.35);
    color: #c7d2fe;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}
