/* Estilos para alertas bonitos */
.alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    animation: fadeIn 0.3s ease-in-out forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; }
}

.alert-box {
    background: linear-gradient(135deg, #2c2c2c, #1a1a1a);
    border: 2px solid #f25d52;
    border-radius: 15px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(242, 93, 82, 0.3);
    position: relative;
    transform: scale(0.8);
    animation: popIn 0.3s ease-out forwards;
}

@keyframes popIn {
    to {
        transform: scale(1);
    }
}

.alert-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.alert-success .alert-icon {
    color: #4CAF50;
}

.alert-error .alert-icon {
    color: #f44336;
}

.alert-warning .alert-icon {
    color: #ff9800;
}

.alert-info .alert-icon {
    color: #2196F3;
}

.alert-title {
    color: #fff;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.alert-message {
    color: #ccc;
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 20px;
}

.alert-button {
    background: linear-gradient(135deg, #f25d52, #ff6b5b);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.alert-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(242, 93, 82, 0.4);
}

.alert-button.secondary {
    background: linear-gradient(135deg, #666, #555);
}

.alert-button.secondary:hover {
    box-shadow: 0 4px 15px rgba(102, 102, 102, 0.4);
}

/* Loading spinner para ações assíncronas */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top: 2px solid #f25d52;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}