.dialog-overlay,
.guestbook-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.dialog-overlay.active,
.guestbook-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.dialog-box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    text-align: center;
}

.dialog-overlay.active .dialog-box,
.guestbook-modal-overlay.active .dialog-box {
    transform: translateY(0);
}

.dialog-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.dialog-message {
    font-size: 1rem;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

.dialog-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.dialog-btn {
    padding: 10px 25px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s;
    flex: 1;
}

.dialog-btn.confirm {
    background: #ff6b6b;
    color: white;
}

.dialog-btn.confirm:hover {
    background: #ff5252;
}

.dialog-btn.cancel {
    background: #f0f2f5;
    color: #555;
}

.dialog-btn.cancel:hover {
    background: #e4e6e9;
}

/* Toast */
.toast-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: toastIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes toastIn {
    from {
        transform: translateY(-30px) scale(0.8);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.toast span {
    display: flex;
    align-items: center;
    gap: 8px;
}