/* Toast Notification System (Android-inspired) */
.toast-container {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
    width: 90%;
    max-width: 400px;
}

.toast {
    background-color: rgba(50, 50, 50, 0.95);
    color: #ffffff;
    padding: 0.8rem 1.6rem;
    border-radius: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    opacity: 0;
    transform: translateY(1.5rem);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: auto;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
	width:100vh;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background-color: rgba(56, 142, 60, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.toast.error {
    background-color: rgba(211, 47, 47, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.toast.alert, .toast.warning {
    background-color: rgba(255, 105, 3, 0.95);
    border-color: rgba(255, 255, 255, 0.2);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* Modal and Iframe (Keeping for contract, but modernized) */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    backdrop-filter: blur(4px);
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: clamp(1rem, 5vw, 2rem);
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 90%;
    height: 85%;
    max-width: 1000px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--medium-text, #757575);
    z-index: 10;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--dark-text, #212121);
}

.modal-content iframe {
    width: 100%;
    flex-grow: 1;
    border: none;
    border-radius: 0.5rem;
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 1.5rem;
    }
    
    .modal-content {
        width: 95%;
        height: 90%;
        padding: 1rem;
    }
}