/**
 * TrackApp Custom Styles
 * Personalizaciones del tema Sash para TrackApp
 */

:root {
    /* Colores primarios de TrackApp */
    --primary-rgb: 94, 118, 166;         /* #5e76a6 - Azul corporativo */
    --secondary-rgb: 38, 191, 148;       /* #26bf94 - Verde éxito */
    
    /* Colores del sistema */
    --success-rgb: 38, 191, 148;         /* #26bf94 */
    --warning-rgb: 245, 184, 73;         /* #f5b849 */
    --danger-rgb: 245, 51, 79;           /* #f5334f */
    --info-rgb: 73, 182, 245;            /* #49b6f5 */
}

/* ============================================
   AVATARS CON ESTADO
   ============================================ */

.avatar {
    position: relative;
}

.avatar.online::after,
.avatar.offline::after,
.avatar.busy::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border: 2px solid #fff;
    border-radius: 50%;
}

.avatar.online::after {
    background-color: #26bf94;
}

.avatar.offline::after {
    background-color: #8c9097;
}

.avatar.busy::after {
    background-color: #f5b849;
}

/* ============================================
   BADGES DE ESTADO
   ============================================ */

.badge.trip-status-pending { 
    background-color: rgba(245, 184, 73, 0.15); 
    color: #f5b849; 
}

.badge.trip-status-active { 
    background-color: rgba(73, 182, 245, 0.15); 
    color: #49b6f5; 
}

.badge.trip-status-completed { 
    background-color: rgba(38, 191, 148, 0.15); 
    color: #26bf94; 
}

.badge.trip-status-cancelled { 
    background-color: rgba(245, 51, 79, 0.15); 
    color: #f5334f; 
}

/* ============================================
   SIDEBAR ACTIVE
   ============================================ */

.side-menu__item.active {
    background: linear-gradient(135deg, rgba(94, 118, 166, 0.1) 0%, rgba(94, 118, 166, 0.05) 100%);
    border-left: 3px solid #5e76a6;
}

/* ============================================
   CARDS
   ============================================ */

.card.custom-card {
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* ============================================
   EMPTY STATE
   ============================================ */

.empty-state {
    padding: 40px 20px;
    text-align: center;
}

.empty-state i {
    font-size: 48px;
    color: #e9eaf3;
    margin-bottom: 16px;
}

.empty-state h5 {
    color: #8c9097;
    margin-bottom: 8px;
}

.empty-state p {
    color: #a9acb5;
    font-size: 14px;
}

/* ============================================
   TABLES
   ============================================ */

.table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.table-responsive {
    border-radius: 8px;
}

/* ============================================
   TIMELINE
   ============================================ */

.timeline-widget-list {
    position: relative;
    padding-left: 20px;
}

.timeline-widget-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e9eaf3;
}

.timeline-widget-list::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 8px;
    width: 10px;
    height: 10px;
    background-color: #5e76a6;
    border-radius: 50%;
}

/* ============================================
   MESSAGES CONTAINER
   ============================================ */

.messages-container {
    margin-bottom: 1rem;
}

/* ============================================
   AUTHENTICATION PAGES
   ============================================ */

.authentication-background {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f5f6fa 0%, #e9eaf3 100%);
}

.authentication-brand {
    max-height: 45px;
    width: auto;
}

/* ============================================
   DRIVER CARD MINI (para mapas)
   ============================================ */

.driver-card-mini {
    cursor: pointer;
    transition: all 0.2s ease;
}

.driver-card-mini:hover {
    background-color: #f8f9fa;
}

.driver-card-mini.selected {
    border-left: 3px solid #5e76a6;
    background-color: rgba(94, 118, 166, 0.05);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 767.98px) {
    .card.custom-card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .card-header .card-title {
        margin-bottom: 0.5rem;
    }
}
