:root {
    --main-bg-color: #34495E;
    --card-bg-color: #2C3E50;
    --text-color: #ECF0F1;
    --accent-color: #3498DB;
    --hover-color: #2980B9;
    --edit-color: #F39C12;
    --alert-color: #E74C3C;
}

.alertas-container {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(22, 3, 230, 0.3);
    overflow: hidden;
    height: 80vh;
    display: flex;
    flex-direction: column;
}

/* Estilos para ambas vistas */
.view-container {
    display: none;
    flex: 1;
    overflow: hidden;
}

.view-container.active {
    display: flex;
    flex-direction: column;
}

/* Estilos vista productos */
.producto-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.producto-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.producto-checkbox {
    width: 20px;
    height: 20px;
    margin-right: 20px;
    accent-color: var(--accent-color);
    cursor: pointer;
}

.producto-imagen {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

/* Estilos vista alertas */
.alerta-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    background-color: rgba(231, 76, 60, 0.1);
}

.alerta-item:hover {
    background-color: rgba(231, 76, 60, 0.2);
}

.alerta-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.alerta-producto {
    font-weight: 600;
    color: var(--alert-color);
}

.alerta-fecha {
    font-size: 0.8rem;
    opacity: 0.8;
}

.alerta-detalle {
    display: flex;
    justify-content: space-between;
}

.precio-anterior {
    text-decoration: line-through;
    opacity: 0.7;
}

.precio-nuevo {
    font-weight: 700;
    color: var(--alert-color);
}

.diferencia {
    background-color: var(--alert-color);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
}

/* Elementos comunes */
.producto-info, .alerta-info {
    flex: 1;
}

.producto-nombre, .alerta-producto {
    font-weight: 600;
    margin-bottom: 5px;
}

.producto-descripcion, .alerta-descripcion {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 5px;
}

.producto-precio {
    font-weight: 700;
    color: var(--accent-color);
}

.scroll-container {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
}

/* Estilo personalizado para el scroll */
.scroll-container::-webkit-scrollbar {
    width: 8px;
}

.scroll-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--hover-color);
}

.btn-guardar {
    background-color: var(--accent-color);
    border: none;
    padding: 8px 15px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-guardar:hover {
    background-color: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-seleccionar {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    margin-right: 10px;
}

.btn-seleccionar:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.btn-editar {
    background-color: var(--edit-color);
    border: none;
    padding: 8px 15px;
    color: white;
}

.btn-editar:hover {
    background-color: #E67E22;
    color: white;
}

.header-alertas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.contador-seleccionados {
    background-color: var(--accent-color);
    border-radius: 50%;
    width: 25px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-left: 10px;
}

.email-container {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.email-input-group {
    display: flex;
    align-items: center;
}

.email-input {
    flex: 1;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
}

.email-input:disabled {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.btn-filtro {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 8px 15px;
    transition: all 0.3s;
}

.btn-filtro:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

#btn-add-prod {
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.btn-switch-view {
    background-color: var(--alert-color);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.btn-switch-view:hover {
    background-color: #C0392B;
}

.btn-switch-view i {
    margin-right: 5px;
}

.producto-item.hidden {
    display: none;
}

.content-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.footer-buttons {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
}