/* Estilo base */
.sidebar .nav-item .nav-link {
    position: relative;
    transition: all 0.4s ease;
    border-radius: 0.35rem;
}

/* Efecto hover */
.sidebar .nav-item .nav-link:hover {
    background-color: #040F1D;
    color: #fff;
    transform: translateX(4px);
    /* leve desplazamiento */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    /* un poco de sombra */
}

/* Activo */
.sidebar .nav-item.active .nav-link {
    background-color: #040F1D;
    color: #fff;
    border-radius: 0.45rem;
    box-shadow: inset 4px 0 0 #040F1D;
    /* barra lateral para resaltar */
}

/* Logo base (colapsado) */
.sidebar.toggled .sidebar-brand-icon img {
    width: 40px;
    height: 40px;
    transition: all 0.4s ease;
}

/* Texto base tamaño */
.sidebar .sidebar-brand-text {
    font-size: 0.95rem;
    /* un poco más pequeño que 16px */
    /* font-weight: 600; */
    transition: font-size 0.3s ease;
}

/* Crece un poquito al expandir */
.sidebar.toggled:hover .sidebar-brand-text {
    font-size: 1.1rem;
}

/* Fondo del sidebar */
.sidebar {
    background-color: #0A234A !important;
    /* Cambia este color */
    background-image: none !important;
}

.bg-gradient-primary {
    background-color: #0A234A !important;
    background-image: none !important;
}

body,
html {
    height: 100%;
    margin: 0;
}

.split-container {
    display: flex;
    height: 100vh;
}

/* Panel izquierdo */
.left-side {
    background-color: #0A234A;
    /* azul PlannerPack */
    color: white;
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
}

.left-side img {
    width: 180px;
    margin-bottom: 20px;
}

.left-side h1 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Panel derecho */
.right-side {
    background-color: white;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

.login-box h2 {
    font-weight: 700;
    margin-bottom: 25px;
}

.btn-login {
    width: 100%;
    background-color: #0A234A;
    border-color: #0A234A;
}

.btn-login:hover {
    background-color: #0d2d5e;
    border-color: #0d2d5e;
}

@media(max-width: 900px) {
    .split-container {
        flex-direction: column;
    }

    .left-side,
    .right-side {
        width: 100%;
        height: auto;
        padding: 60px 20px;
    }
}

.drag-handle {
    cursor: grab;
    font-size: 18px;
    user-select: none;
}

.drag-handle:active {
    cursor: grabbing;
}

.timeline-container {
    position: relative;
    padding-left: 30px;
}

.timeline-container::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #dee2e6;
}

.timeline-item {
    position: relative;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: #007bff;
    border-radius: 50%;
}

/* CONTENEDOR */
.timeline-moderno {
    position: relative;
    padding-left: 40px;
}

/* Línea vertical */
.timeline-moderno::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e9ecef;
}

/* ITEM */
.timeline-moderno .timeline-item {
    position: relative;
    margin-bottom: 25px;
}

/* Punto */
.timeline-moderno .timeline-item::before {
    content: "";
    position: absolute;
    left: -22px;
    top: 8px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--color, #007bff);
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--color, #007bff);
}

/* CARD */
.timeline-moderno .card {
    border-left: 4px solid var(--color, #007bff);
    border-radius: 10px;
}

/* ITEM ACTUAL */
.timeline-moderno .timeline-item.actual::before {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
}

/* BADGE */
.timeline-moderno .badge {
    font-size: 12px;
    padding: 5px 10px;
}

/* TEXTO TIEMPO */
.timeline-time {
    font-size: 12px;
    color: #6c757d;
}

.preview-item {
    position: relative;
    margin: 5px;
}

.preview-item img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.btn-remove-img {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    cursor: pointer;
}