[x-cloak] {
    display: none !important;
}

/* Toast System */
.toast-container {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 24rem;
    pointer-events: none;
}

.toast {
    border-radius: 0.5rem;
    padding: 1.25rem;
    border: 1px solid #e7e5e4;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    pointer-events: auto;
    background: white;
}

/* Toast Variants */
.toast-success {
    background: #16a34a;
    color: white;
    border-color: #15803d;
}

.toast-error {
    background: #dc2626;
    color: white;
    border-color: #b91c1c;
}

.toast-info {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
}

.toast-content {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding-left: 2rem;
}

.toast-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.toast-icon svg {
    width: 100%;
    height: 100%;
    stroke: white;
}

.toast-text {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    color: white;
}

.toast-description {
    font-size: 0.875rem;
    opacity: 0.9;
    color: white;
}

.toast-action {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    margin-right: auto;
    color: white;
}

.toast-action:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toast-close {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
}

.toast:hover .toast-close {
    opacity: 1;
}

.toast-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.toast-close svg {
    width: 0.875rem;
    height: 0.875rem;
    stroke: white;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 0.5rem 0.5rem;
    transition: width 0.1s linear;
}

/* Toast Animations */
.toast-enter {
    transition: all 0.3s ease;
}

.toast-enter-start {
    opacity: 0;
    transform: translateX(100%);
}

.toast-enter-end {
    opacity: 1;
    transform: translateX(0);
}

.toast-leave {
    transition: all 0.3s ease;
}

.toast-leave-start {
    opacity: 1;
    transform: translateX(0);
}

.toast-leave-end {
    opacity: 0;
    transform: translateX(100%);
}
