/* Estilos para Travel Plan */
:root {
    --primary: #0d6efd;
    --secondary: #6c757d;
    --success: #198754;
    --info: #0dcaf0;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #f8f9fa;
    --dark: #212529;
    --bs-border-radius: 0.375rem;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f5f5f5;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 56px; /* Espacio para la barra de navegaciu00f3n fija */
}

/* Header y Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    height: 56px;
    z-index: 1030; /* Mayor z-index para que esté siempre por encima */
}

.navbar-brand {
    font-weight: 700;
    color: var(--primary);
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 56px;
    bottom: 0;
    left: 0;
    width: 250px;
    padding: 20px 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 1px 0 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    overflow-y: auto; /* Permite desplazamiento si el menú es muy largo */
}

.sidebar.collapsed {
    width: 60px;
}

.sidebar .nav-link {
    color: #444;
    padding: 10px 20px;
    margin-bottom: 5px;
    border-radius: 0;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: var(--primary);
}

.sidebar .nav-link.active {
    background-color: var(--primary);
    color: white;
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link i {
    margin-right: 0;
    font-size: 1.4rem;
}

/* Contenido principal */
.content-wrapper {
    flex: 1;
    transition: all 0.3s;
    margin-left: 250px; /* Mismo ancho que el sidebar */
    padding: 20px;
    min-height: calc(100vh - 56px);
    position: relative;
    top: 0;
}

.sidebar-collapsed .content-wrapper {
    margin-left: 60px;
}

.content-wrapper.expanded {
    margin-left: 60px;
}

/* Cards */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: var(--bs-border-radius);
    border: none;
    margin-bottom: 20px;
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background-color: #fff;
    font-weight: 500;
}

/* Forms */
.form-control, .form-select {
    border-radius: var(--bs-border-radius);
    padding: 8px 12px;
    border: 1px solid #ced4da;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: var(--bs-border-radius);
    padding: 8px 15px;
    font-weight: 500;
}

/* Styles for booking list */
.booking-list .booking-item {
    border-left: 5px solid #ddd;
    transition: all 0.2s;
}

.booking-list .booking-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.booking-list .booking-item.status-borrador { border-left-color: var(--secondary); }
.booking-list .booking-item.status-cotizacion { border-left-color: var(--info); }
.booking-list .booking-item.status-confirmado { border-left-color: var(--success); }
.booking-list .booking-item.status-cancelado { border-left-color: var(--danger); }
.booking-list .booking-item.status-completado { border-left-color: var(--primary); }

/* Timeline for itinerary */
.timeline {
    position: relative;
    list-style: none;
    padding-left: 50px;
}

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

.timeline-item {
    position: relative;
    padding-bottom: 30px;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-item:before {
    content: '';
    position: absolute;
    left: -30px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary);
    border: 2px solid white;
}

.timeline-content {
    background-color: white;
    padding: 15px;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.timeline-time {
    position: absolute;
    left: -80px;
    top: 0;
    font-weight: bold;
    color: var(--primary);
}

/* Login page */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8f9fa;
}

.login-card {
    width: 400px;
    max-width: 90%;
    background-color: white;
    border-radius: var(--bs-border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    max-width: 150px;
    height: auto;
}

/* Dashboard widgets */
.stat-card {
    border-radius: var(--bs-border-radius);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.stat-card .icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(13, 110, 253, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin-right: 15px;
}

.stat-card .content h4 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.stat-card .content p {
    margin-bottom: 0;
    color: #6c757d;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 60px;
    }
    
    .sidebar .nav-link span {
        display: none;
    }
    
    .sidebar .nav-link i {
        margin-right: 0;
        font-size: 1.4rem;
    }
    
    .content-wrapper {
        margin-left: 60px;
    }
    
    .timeline {
        padding-left: 30px;
    }
    
    .timeline-time {
        position: static;
        display: block;
        margin-bottom: 5px;
    }
}
