/* Noty - Tailwind CSS Theme */

.noty_theme__tailwind.noty_bar {
    margin: 4px 0;
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.noty_theme__tailwind.noty_bar .noty_body {
    padding: 1rem 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
    font-weight: 500;
}

.noty_theme__tailwind.noty_bar .noty_buttons {
    padding: 0.75rem 1rem;
    border-top: 1px solid;
}

/* Success - Green */
.noty_theme__tailwind.noty_type__success {
    background-color: rgb(34 197 94);
    border: 1px solid rgb(22 163 74);
    color: white;
}

.noty_theme__tailwind.noty_type__success .noty_buttons {
    border-top-color: rgb(22 163 74);
}

/* Error - Red */
.noty_theme__tailwind.noty_type__error {
    background-color: rgb(239 68 68);
    border: 1px solid rgb(220 38 38);
    color: white;
}

.noty_theme__tailwind.noty_type__error .noty_buttons {
    border-top-color: rgb(220 38 38);
}

/* Warning - Amber */
.noty_theme__tailwind.noty_type__warning {
    background-color: rgb(251 191 36);
    border: 1px solid rgb(245 158 11);
    color: rgb(120 53 15);
}

.noty_theme__tailwind.noty_type__warning .noty_buttons {
    border-top-color: rgb(245 158 11);
}

/* Info/Information - Blue */
.noty_theme__tailwind.noty_type__info,
.noty_theme__tailwind.noty_type__information {
    background-color: rgb(59 130 246);
    border: 1px solid rgb(37 99 235);
    color: white;
}

.noty_theme__tailwind.noty_type__info .noty_buttons,
.noty_theme__tailwind.noty_type__information .noty_buttons {
    border-top-color: rgb(37 99 235);
}

/* Alert - Gray */
.noty_theme__tailwind.noty_type__alert {
    background-color: rgb(107 114 128);
    border: 1px solid rgb(75 85 99);
    color: white;
}

.noty_theme__tailwind.noty_type__alert .noty_buttons {
    border-top-color: rgb(75 85 99);
}

/* Close button */
.noty_theme__tailwind.noty_bar .noty_close_button {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: transparent;
    font-size: 1.25rem;
    font-weight: 700;
    width: 1.5rem;
    height: 1.5rem;
    line-height: 1;
    text-align: center;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    transition: opacity 0.2s ease;
    border: 0;
    outline: 0;
}

.noty_theme__tailwind.noty_bar .noty_close_button:hover {
    opacity: 1;
}

/* Progress bar (timer) */
.noty_theme__tailwind.noty_bar .noty_progressbar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 3px;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.25);
    opacity: 0.6;
    filter: alpha(opacity=60);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .noty_theme__tailwind.noty_bar {
        box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.2);
    }

    /* Success - Darker green for dark mode */
    .noty_theme__tailwind.noty_type__success {
        background-color: rgb(22 163 74);
        border-color: rgb(21 128 61);
    }

    /* Error - Darker red for dark mode */
    .noty_theme__tailwind.noty_type__error {
        background-color: rgb(220 38 38);
        border-color: rgb(185 28 28);
    }

    /* Warning - Darker amber for dark mode */
    .noty_theme__tailwind.noty_type__warning {
        background-color: rgb(245 158 11);
        border-color: rgb(217 119 6);
        color: white;
    }

    /* Info - Darker blue for dark mode */
    .noty_theme__tailwind.noty_type__info,
    .noty_theme__tailwind.noty_type__information {
        background-color: rgb(37 99 235);
        border-color: rgb(29 78 216);
    }

    /* Alert - Lighter gray for dark mode */
    .noty_theme__tailwind.noty_type__alert {
        background-color: rgb(75 85 99);
        border-color: rgb(55 65 81);
    }
}

/* Animation helpers */
.noty_theme__tailwind.noty_bar {
    transition: transform 0.3s ease, opacity 0.3s ease;
}