/* utils.css - 공통 UI 컴포넌트 스타일 */

/* Toast System */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: rgba(30, 30, 35, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 16px 25px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 320px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    transform: translateX(120%);
    transition: all 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    opacity: 0;
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.success {
    border-left: 5px solid #43b581;
}

.toast.error {
    border-left: 5px solid #f04747;
}

.toast.info {
    border-left: 5px solid #5865f2;
}

.toast i {
    font-size: 1.4rem;
}

.toast.success i {
    color: #43b581;
}

.toast.error i {
    color: #f04747;
}

.toast.info i {
    color: #5865f2;
}

/* Custom Confirm Modal */
.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-modal-overlay.active {
    opacity: 1;
}

.custom-modal {
    background: #1e1f22;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    width: 90%;
    max-width: 450px;
    padding: 35px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.custom-modal-overlay.active .custom-modal {
    transform: scale(1);
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.custom-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

.custom-modal-header .close-btn {
    background: none;
    border: none;
    color: #8e9297;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.custom-modal-header .close-btn:hover {
    color: #fff;
    transform: rotate(90deg);
}

.custom-modal-body p {
    color: #b5bac1;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.custom-modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal-btn {
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    font-family: inherit;
}

.modal-btn.cancel {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.modal-btn.confirm {
    background: #FF007F;
    color: #fff;
}

.modal-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-btn.confirm:hover {
    background: #ff1a8c;
    box-shadow: 0 5px 15px rgba(255, 0, 127, 0.4);
}