/* toast.css - Custom global toast & confirmation system styles */

/* ── Toast Container & Item ── */
#nexus-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.nexus-toast {
    color: #fff;
    padding: 11px 16px;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    max-width: 380px;
    pointer-events: auto;
    transform: translateX(120%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
    opacity: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.nexus-toast.success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.nexus-toast.error,
.nexus-toast.danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.nexus-toast.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.nexus-toast.info {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.nexus-toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 13px;
    padding: 2px;
    transition: 0.2s;
    margin-left: auto;
    flex-shrink: 0;
}
.nexus-toast-close:hover {
    color: #fff;
}

/* ── Modals (Confirm & Prompt) ── */
.nexus-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 6, 14, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.nexus-modal-card {
    background: rgba(10, 14, 28, 0.97);
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: 14px;
    width: 380px;
    max-width: 90vw;
    padding: 24px 22px 20px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 245, 255, 0.04);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    font-family: 'Inter', sans-serif;
    color: #fff;
}

/* Custom alignment for Prompt if needed */
.nexus-modal-card.left-align {
    text-align: left;
}

.nexus-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #00f5ff;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.nexus-modal-title.center {
    text-align: center;
}

.nexus-modal-message {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.65;
    margin-bottom: 20px;
    white-space: pre-line;
    letter-spacing: 0.1px;
}

.nexus-modal-prompt-input {
    width: 100%;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.18);
    border-radius: 8px;
    padding: 0 12px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-bottom: 20px;
    outline: none;
    transition: 0.2s;
    box-sizing: border-box;
}

.nexus-modal-prompt-input:focus {
    border-color: #00f5ff;
    box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.1);
}

.nexus-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.nexus-modal-btn-cancel {
    flex: 1;
    height: 36px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
}
.nexus-modal-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.nexus-modal-btn-ok {
    flex: 1;
    height: 36px;
    background: linear-gradient(135deg, #00f5ff 0%, #0096c7 100%);
    border: none;
    border-radius: 8px;
    color: #04080f;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.18s ease;
    box-shadow: 0 2px 10px rgba(0, 245, 255, 0.2);
}
.nexus-modal-btn-ok:hover {
    background: linear-gradient(135deg, #00f5ff 0%, #0096c7 100%);
    border: none;
    color: #04080f;
    filter: brightness(1.1);
    box-shadow: 0 4px 16px rgba(0, 245, 255, 0.35);
    transform: translateY(-1px);
}
