:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --warning-color: #f39c12;
    --info-color: #9b59b6;
    --nav-bg: #000;
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Estilos para el video de fondo premium */
#video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4) contrast(1.2);
}

/* Contenedor principal */
.main-container {
    position: relative;
    z-index: 1;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
    animation: fadeIn 0.8s ease-out;
}

/* Tarjeta principal estilo premium */
.premium-card {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Encabezado premium */
.premium-header {
    padding: 4rem 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(52, 152, 219, 0.2) 100%);
    border-radius: 20px 20px 0 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.premium-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--warning-color), var(--info-color));
}

.welcome-title {
    font-weight: 300;
    color: white;
    margin-bottom: 1.5rem;
    font-size: 3rem;
    letter-spacing: 1px;
    position: relative;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.welcome-subtitle {
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

/* Sección de Viajes en Curso */
.current-trips-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.trip-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s ease;
    border-left: 4px solid #4e73df;
}

.trip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.12);
}

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

.trip-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 400;
}

.trip-status {
    background: #4e73df;
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.trip-body p {
    margin: 8px 0;
    color: #d1d1d1;
    font-size: 0.9rem;
}

.trip-body strong {
    color: #fff;
    font-weight: 400;
}

.trip-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #a1a1a1;
}

.trip-footer i {
    margin-right: 5px;
    font-size: 0.9rem;
}

.loading-trips, .no-trips, .error-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 300;
}

.loading-trips i, .no-trips i, .error-loading i {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
    opacity: 0.8;
}

.no-trips i {
    color: #6c757d;
}

.error-loading i {
    color: #e74a3b;
}

/* Tarjetas de características premium */
.feature-section {
    padding: 3rem 2rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 420px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.feature-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
}

.vehicles-card::after {
    background: var(--primary-color);
}

.operations-card::after {
    background: var(--secondary-color);
}

.maintenance-card::after {
    background: var(--warning-color);
}

.settings-card::after {
    background: var(--info-color);
}

.feature-icon-container {
    margin-bottom: 2rem;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 3rem;
    display: inline-block;
    animation: float 4s ease-in-out infinite;
}

.vehicles-icon {
    color: var(--primary-color);
}

.operations-icon {
    color: var(--secondary-color);
}

.maintenance-icon {
    color: var(--warning-color);
}

.settings-icon {
    color: var(--info-color);
}

.feature-title-container {
    margin-bottom: 2rem;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    font-weight: 300;
    color: white;
    font-size: 1.6rem;
    position: relative;
    display: inline-block;
    text-align: center;
    width: 100%;
    letter-spacing: 1px;
}

.feature-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    border-radius: 2px;
}

.vehicles-title::after {
    background: var(--primary-color);
}

.operations-title::after {
    background: var(--secondary-color);
}

.maintenance-title::after {
    background: var(--warning-color);
}

.settings-title::after {
    background: var(--info-color);
}

.feature-buttons {
    margin-top: auto;
    padding-top: 1.5rem;
}

/* Botones premium estilo navbar */
.feature-btn {
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: 300;
    transition: all 0.3s;
    margin: 0.5rem 0;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    letter-spacing: 0.5px;
}

.feature-btn i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
    min-width: 20px;
}

.feature-btn::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.vehicles-btn:hover {
    background: rgba(52, 152, 219, 0.15);
}

.vehicles-btn:hover::after {
    background: var(--primary-color);
    width: 100%;
}

.operations-btn:hover {
    background: rgba(46, 204, 113, 0.15);
}

.operations-btn:hover::after {
    background: var(--secondary-color);
    width: 100%;
}

.maintenance-btn:hover {
    background: rgba(243, 156, 18, 0.15);
}

.maintenance-btn:hover::after {
    background: var(--warning-color);
    width: 100%;
}

.settings-btn:hover {
    background: rgba(155, 89, 182, 0.15);
}

.settings-btn:hover::after {
    background: var(--info-color);
    width: 100%;
}

/* Tooltip premium */
.custom-tooltip {
    position: relative;
    display: inline-block;
    width: 100%;
}

.custom-tooltip .custom-tooltip-text {
    visibility: hidden;
    width: 240px;
    background-color: var(--nav-bg);
    color: white;
    text-align: center;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 9999;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 300;
}

.custom-tooltip .custom-tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--nav-bg) transparent transparent transparent;
}

.custom-tooltip:hover .custom-tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-5px);
}

/* Botón de cierre premium */
.logout-container {
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    border-radius: 50px;
    padding: 14px 28px;
    font-weight: 300;
    transition: all 0.3s;
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.logout-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.logout-btn i {
    margin-right: 10px;
}

.logout-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.logout-btn:hover::before {
    left: 100%;
}

/* Efecto de partículas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
}

/* Estilos para el dashboard */
.dashboard-section {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-title {
    color: white;
    font-weight: 300;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title i {
    font-size: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.dashboard-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.dashboard-content {
    flex-grow: 1;
}

.dashboard-card h3 {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 300;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dashboard-value {
    color: white;
    font-size: 1.8rem;
    font-weight: 300;
    margin-bottom: 0.3rem;
}

.dashboard-subtext, .dashboard-change {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0;
}

.text-success {
    color: #2ecc71;
}

.text-danger {
    color: #e74c3c;
}

.alert-card {
    border-left: 4px solid #f39c12;
}

.alert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.alert-item {
    background: rgba(243, 156, 18, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Estilos para el calendario */
.calendar-section {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#calendar {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.fc {
    color: white;
}

.fc-header-toolbar {
    margin-bottom: 1em !important;
}

.fc-toolbar-title {
    font-weight: 300 !important;
    font-size: 1.4rem !important;
}

.fc-button {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    text-transform: capitalize !important;
    font-weight: 300 !important;
}

.fc-button:hover {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.fc-button-active {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.fc-daygrid-day-number, .fc-col-header-cell-cushion {
    color: white !important;
    text-decoration: none !important;
}

.fc-daygrid-day-frame {
    background: rgba(255, 255, 255, 0.03) !important;
}

.fc-daygrid-day:hover .fc-daygrid-day-frame {
    background: rgba(255, 255, 255, 0.08) !important;
}

.fc-day-today {
    background: rgba(46, 204, 113, 0.1) !important;
}

.fc-event {
    cursor: pointer;
    border: none !important;
    padding: 3px 6px !important;
    font-size: 0.9rem !important;
}

.fc-event-title {
    font-weight: 300 !important;
}

/* Responsive */
@media (max-width: 1200px) {
    .welcome-title {
        font-size: 2.5rem;
    }

    .welcome-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        padding: 1rem;
    }

    .premium-header {
        padding: 3rem 1rem;
    }

    .welcome-title {
        font-size: 2rem;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 2rem;
        min-height: auto;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 1.2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    #calendar {
        padding: 0.8rem;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 1.8rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .trips-grid {
        grid-template-columns: 1fr;
    }

    .trip-card {
        padding: 1rem;
    }
}