/* Modern, Premium Dialog System */
.app-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.app-dialog-box {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.dark-mode .app-dialog-box {
    background: rgba(30, 30, 30, 0.95);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.app-dialog-overlay.active .app-dialog-box {
    transform: scale(1);
}

.app-dialog-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #ffbc0d, #ff8000);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-dialog-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #27251f;
}

.dark-mode .app-dialog-title {
    color: #fff;
}

.app-dialog-message {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.5;
}

.dark-mode .app-dialog-message {
    color: #ccc;
}

.app-dialog-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.app-dialog-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 1rem;
    flex: 1;
}

.app-dialog-btn-confirm {
    background: #ffbc0d;
    color: #27251f;
}

.app-dialog-btn-confirm:hover {
    background: #e5a90b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 188, 13, 0.3);
}

.app-dialog-btn-cancel {
    background: #f1f1f1;
    color: #666;
}

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

.app-dialog-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    box-sizing: border-box;
    outline: none;
    transition: all 0.2s;
}

.app-dialog-input:focus {
    border-color: #ffbc0d;
    background: rgba(255, 188, 13, 0.05);
}

/* Toast System */
.app-toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    pointer-events: none;
}

.app-toast {
    background: rgba(40, 40, 40, 0.9);
    color: white;
    padding: 1rem 2rem;
    border-radius: 100px;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: toast-in 0.4s ease forwards, toast-out 0.4s ease 2.6s forwards;
    pointer-events: auto;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}