/* React-like Alert System */
.alert-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1050;
    max-width: 400px;
    pointer-events: none;
}

.alert-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
}

.alert-item.show {
    transform: translateX(0);
    opacity: 1;
}

.alert-item.hide {
    transform: translateX(100%);
    opacity: 0;
}

.alert-content {
    display: flex;
    align-items: center;
    flex: 1;
}

.alert-icon {
    margin-right: 12px;
    font-size: 18px;
}

.alert-text {
    flex: 1;
    color: #333;
}

.alert-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0;
    margin-left: 12px;
    transition: color 0.2s ease;
}

.alert-close:hover {
    color: #666;
}

/* Alert Types */
.alert-success {
    border-left: 4px solid #28a745;
}

.alert-success .alert-icon {
    color: #28a745;
}

.alert-error,
.alert-danger {
    border-left: 4px solid #dc3545;
}

.alert-error .alert-icon,
.alert-danger .alert-icon {
    color: #dc3545;
}

.alert-warning {
    border-left: 4px solid #ffc107;
}

.alert-warning .alert-icon {
    color: #ffc107;
}

.alert-info {
    border-left: 4px solid #17a2b8;
}

.alert-info .alert-icon {
    color: #17a2b8;
}

/* Progress bar for auto-dismiss */
.alert-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    width: 100%;
    transform-origin: left;
    animation: progress 5s linear forwards;
}

@keyframes progress {
    0% { transform: scaleX(1); }
    100% { transform: scaleX(0); }
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .alert-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }

    .alert-item {
        margin-bottom: 8px;
        padding: 12px 16px;
    }
}