﻿
/* Separador rojo */
.separator {
	width: 2px;
	height: 40px;
	background-color: red;
	margin: 0 20px;
}
/* sidebar-custom */		    
.sidebar-custom {
	width: 180px;
	background-color: #d50000; /* rojo */
	color: white;
	height: 100vh;
	position: fixed;
	transition: transform 0.3s ease;
	z-index: 1000;
}

.sidebar-custom-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	font-size: 18px;
	font-weight: bold;
	border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-custom-toggle {
	background: none;
	border: none;
	color: white;
	font-size: 20px;
	cursor: pointer;
}

/* Lista de opciones */
.sidebar-custom-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-custom-item a {
	display: block;
	padding: 15px 20px;
	color: white;
	text-decoration: none;
	font-size: 13px;
}

	.sidebar-custom-item a:hover,
	.sidebar-custom-item.active a {
		background-color: rgba(255, 255, 255, 0.2);
	}

/* Contenido principal con margen izquierdo del sidebar-custom */
.main-content {
	margin-left: 180px;	   
	flex: 1;
	transition: margin-left 0.3s ease;
}

/* sidebar-custom oculto */
.sidebar-custom.closed {
	transform: translateX(-100%);
}

.main-content.sidebar-custom-closed {
	margin-left: 0;
}

.open-sidebar-custom-btn {
	position: fixed;
	top: 20px;
	left: 0; /* <-- AL BORDE IZQUIERDO */
	z-index: 1100;
	background-color: #d50000;
	color: white;
	border: none;
	font-size: 22px;
	padding: 10px 15px;
	cursor: pointer;
	border-radius: 0 4px 4px 0; /* redondeado solo a la derecha */
	box-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}


/* Overlay negro transparente */
.sidebar-custom-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: rgba(0, 0, 0, 0.6);
	z-index: 999;
}

/* sidebar-custom encima del contenido en móviles */
@media (max-width: 991px) {
	.sidebar-custom {
		position: fixed;
		top: 0;
		left: 0;
		height: 100vh;
		width: 250px;				    
		z-index: 2000;
	}

	.main-content {
		margin-left: 0 !important;
	}

		.main-content.sidebar-custom-closed {
			margin-left: 0 !important;
		}

	/* Botón siempre visible en móvil */
	.open-sidebar-custom-btn {
		display: block !important;
	}
}

	 