/* Base toast container */
.p-toast {
    max-width: 400px;
    width: 90vw;
    z-index: 9999;
}

/* The Message Card */
.p-toast .p-toast-message {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* Success State */
.p-toast .p-toast-message.p-toast-message-success {
    border-left: 6px solid #75b84f;
    background: rgba(247, 253, 244, 0.95);
}

.p-toast .p-toast-message.p-toast-message-success .p-toast-message-icon {
    color: #75b84f;
}

/* Error State */
.p-toast .p-toast-message.p-toast-message-error {
    border-left: 6px solid #ff4d4d;
    background: rgba(255, 245, 245, 0.95);
}

.p-toast .p-toast-message.p-toast-message-error .p-toast-message-icon {
    color: #ff4d4d;
}

/* Internal Layout */
.p-toast-message-content {
    display: flex;
    align-items: center;
    padding: 1.25rem;
    gap: 15px;
}

.p-toast-message-text {
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.p-toast-summary {
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 2px;
}

.p-toast-detail {
    font-weight: 500;
    font-size: 0.85rem;
    color: #555;
    line-height: 1.4;
}

/* Close Button */
.p-toast-icon-close {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0,0,0,0.05);
    transition: 0.2s;
}

.p-toast-icon-close:hover {
    background: rgba(0,0,0,0.1);
}

/* Responsive Overrides */
@media (max-width: 600px) {
    .p-toast {
        left: 5% !important;
        right: 5% !important;
        width: 90% !important;
    }

    .p-toast-message-content {
        padding: 1rem;
    }

    .p-toast-detail {
        font-size: 0.8rem;
    }
}

/* Animation refinement */
.p-toast-message-enter {
    opacity: 0;
    transform: translateY(20px);
}
.p-toast-message-enter-active {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}