/*
 * Toastr - Redesigned for Rebhni
 * Clean, modern toast notifications with RTL support
 */

.toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.toast-message {
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-message a,
.toast-message label {
    color: #fff;
    text-decoration: underline;
}

.toast-message a:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Close button */
.toast-close-button {
    position: relative;
    right: -4px;
    top: -4px;
    float: right;
    font-size: 18px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: none;
    opacity: 1;
    line-height: 1;
    transition: color 0.2s;
}

.toast-close-button:focus,
.toast-close-button:hover {
    color: #fff;
    cursor: pointer;
    opacity: 1;
}

.rtl .toast-close-button {
    left: -4px;
    float: left;
    right: auto;
}

button.toast-close-button {
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
}

/* Positioning */
.toast-top-center {
    top: 0;
    right: 0;
    width: 100%;
}

.toast-bottom-center {
    bottom: 0;
    right: 0;
    width: 100%;
}

.toast-top-full-width {
    top: 0;
    right: 0;
    width: 100%;
}

.toast-bottom-full-width {
    bottom: 0;
    right: 0;
    width: 100%;
}

.toast-top-left {
    top: 16px;
    left: 16px;
}

.toast-top-right {
    top: 16px;
    right: 16px;
}

.toast-bottom-right {
    right: 16px;
    bottom: 16px;
}

.toast-bottom-left {
    bottom: 16px;
    left: 16px;
}

/* Container */
#toast-container {
    position: fixed;
    z-index: 999999;
    pointer-events: none;
}

#toast-container * {
    box-sizing: border-box;
}

#toast-container > div {
    position: relative;
    pointer-events: auto;
    overflow: hidden;
    margin: 0 0 8px;
    padding: 14px 16px 14px 48px;
    width: 360px;
    border-radius: 10px;
    background-position: 14px center;
    background-repeat: no-repeat;
    background-size: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
    opacity: 1;
    font-family: 'Cairo', 'IBM Plex Sans Arabic', sans-serif;
    transition: all 0.3s ease;
}

#toast-container > div.rtl {
    direction: rtl;
    padding: 14px 48px 14px 16px;
    background-position: right 14px center;
}

#toast-container > div:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transform: translateY(-1px);
}

/* Toast types */
#toast-container > .toast-success {
    background-color: #0d9488 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-error {
    background-color: #dc2626 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-2h2v2zm0-4h-2V7h2v6z'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-info {
    background-color: #0284c7 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z'/%3E%3C/svg%3E") !important;
}

#toast-container > .toast-warning {
    background-color: #d97706 !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E") !important;
}

/* Center positioning */
#toast-container.toast-bottom-center > div,
#toast-container.toast-top-center > div {
    width: 360px;
    margin-left: auto;
    margin-right: auto;
}

#toast-container.toast-bottom-full-width > div,
#toast-container.toast-top-full-width > div {
    width: 96%;
    margin-left: auto;
    margin-right: auto;
}

/* Progress bar */
.toast-progress {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 10px 10px;
}

/* Responsive */
@media all and (max-width: 480px) {
    #toast-container > div {
        padding: 12px 12px 12px 44px;
        width: calc(100vw - 32px);
        border-radius: 8px;
    }

    #toast-container > div.rtl {
        padding: 12px 44px 12px 12px;
    }

    .toast-bottom-left,
    .toast-bottom-right {
        bottom: 12px;
        left: 16px;
        right: 16px;
    }
}

@media all and (min-width: 481px) and (max-width: 800px) {
    #toast-container > div {
        padding: 14px 14px 14px 48px;
        width: 320px;
    }

    #toast-container > div.rtl {
        padding: 14px 48px 14px 14px;
    }
}
