/* Vehicles List - Diseño Moderno tipo Gmail/Slack */

.vehicles-list-header{
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    color: var(--color1);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
}

.list-header-item{
    display: flex;
    align-items: center;
    gap: 6px;
}

.list-header-item i{
    cursor: pointer;
    transition: transform 0.2s ease;
}

.list-header-item i:hover{
    transform: scale(1.2);
}

.vehicles-list{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.vehicle-list-item{
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    cursor: pointer;
    background-color: white;
}

.vehicle-list-item:hover{
    background-color: #f0f7ff;
    transform: translateX(4px);
    box-shadow: -4px 0 0 0 var(--color1);
}

.vehicle-list-item:last-child{
    border-bottom: none;
}

.vehicle-list-item.no-events{
    cursor: default;
    opacity: 0.7;
}

.vehicle-list-item.no-events:hover{
    background-color: #f8f9fa;
    transform: none;
    box-shadow: none;
}

.list-item-col{
    font-size: 13px;
    color: #2c3e50;
    font-weight: 400;
}

.list-item-col.vehicle-name{
    flex: 2;
    font-weight: 600;
    color: #1a202c;
}

.list-item-col.date{
    flex: 1.5;
}

.list-item-col.time{
    flex: 1.5;
}

.list-item-col.actions{
    width: 60px;
    display: flex;
    justify-content: center;
}

.list-item-col.empty{
    color: #8b95a1;
    font-style: italic;
}

.list-item-col.no-events-message{
    color: #8b95a1;
    font-style: italic;
    font-size: 13px;
}

.list-action-icon{
    color: var(--color1);
    font-size: 16px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.list-action-icon:hover{
    color: var(--color2);
    transform: scale(1.3);
}

/* Popup Events List */
.popup-header{
    text-align: center;
    margin: 5px 0 30px;
    padding-top: 0;
}

.popup-title{
    font-size: 22px;
    font-weight: 300;
    color: var(--color1);
    margin: 0 0 16px 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.popup-subtitle{
    font-size: 16px;
    color: #2c3e50;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.3px;
}

#edpp .filters-card{
    max-width: 1000px;
    margin: 0 auto 1.5rem;
    padding: 1rem 0;
}

.events-list-container{
    background: white;
    border-radius: 10px;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e9ecef;
    overflow: visible;
    display: flex;
    flex-direction: column;
    max-height: 450px;
    max-width: 1000px;
    margin: 0 auto;
}

.events-list-header{
    display: flex;
    align-items: center;
    padding: 12px 20px;
    background: transparent;
    color: var(--color1);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 2px solid #e9ecef;
    flex-shrink: 0;
}

.events-list{
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.event-list-item{
    display: flex;
    align-items: center;
    padding: 14px 20px;
    border-bottom: 1px solid #e9ecef;
    transition: all 0.2s ease;
    background-color: white;
}

.event-list-item:hover{
    background-color: #f0f7ff;
}

.event-list-item:last-child{
    border-bottom: none;
}

.event-action-icon{
    color: var(--color1);
    font-size: 14px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 4px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 125, 186, 0.1);
    position: relative;
}

.event-action-icon:hover{
    background-color: var(--color1);
    color: white;
    transform: scale(1.1);
}

/* Tooltip flotante */
.custom-tooltip{
    position: fixed;
    background-color: var(--color1);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 10000;
    font-family: 'Poppins', Arial, sans-serif;
    letter-spacing: 0.3px;
    opacity: 0;
    transition: opacity 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.custom-tooltip.show{
    opacity: 1;
}

a .event-action-icon{
    color: var(--color1);
}

a:hover .event-action-icon{
    color: white;
}

.unabled-icon{
    color: #cbd5e0;
    font-size: 14px;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    position: relative;
}

.unabled-icon::after{
    content: '';
    position: absolute;
    width: 100%;
    height: 1.5px;
    background-color: #cbd5e0;
    top: 50%;
    left: 0;
    transform: translateY(-50%) rotate(-45deg);
}

/* Scrollbar personalizado */
.vehicles-list::-webkit-scrollbar,
.events-list::-webkit-scrollbar{
    width: 6px;
}

.vehicles-list::-webkit-scrollbar-track,
.events-list::-webkit-scrollbar-track{
    background: #f1f1f1;
}

.vehicles-list::-webkit-scrollbar-thumb,
.events-list::-webkit-scrollbar-thumb{
    background: #c1c1c1;
    border-radius: 3px;
}

.vehicles-list::-webkit-scrollbar-thumb:hover,
.events-list::-webkit-scrollbar-thumb:hover{
    background: #a8a8a8;
}

/* Responsive */
@media (max-width: 768px) {
    .vehicles-list-header,
    .events-list-header{
        padding: 10px 12px;
        font-size: 11px;
    }
    
    .vehicle-list-item,
    .event-list-item{
        padding: 12px;
    }
    
    .list-item-col{
        font-size: 12px;
    }
}
