@charset "utf-8";
/* CSS Document - Tema Oscuro */

body {
	font: 100% Verdana, Arial, Helvetica, sans-serif;
	margin: 0; /* es recomendable ajustar a cero el margen y el relleno del elemento body para lograr la compatibilidad con la configuración predeterminada de los diversos navegadores */
	padding: 0;
	text-align: center; /* esto centra el contenedor en los navegadores IE 5*. El texto se ajusta posteriormente con el valor predeterminado de alineación a la izquierda en el selector #container */
	color: #e0e0e0;
	width: auto;
	background-color: #333;
}

	
.oneColLiqCtrHdr #container {
	width: 100%;  /* esto creará un contenedor con el 80% del ancho del navegador */
	height: auto;
	background: #1a1a1a;
	text-align: center;
	border-top-style: none;
	border-right-style: none;
	border-bottom-style: none;
	border-left-style: none;
	margin-top: 0;
	margin-right: auto;
	margin-bottom: 0;
	margin-left: auto;
}
.oneColLiqCtrHdr #header {
	padding: 0;  /* este relleno coincide con la alineación izquierda de los elementos de los divs que aparecen bajo él. Si se utiliza una imagen en el #header en lugar de texto, es posible que le interese quitar el relleno. */
	background-color: #333;
	text-align: center;
}
.oneColLiqCtrHdr #header h1 {
	margin: 0; /* el ajuste en cero del margen del último elemento del div de #header evita la contracción del margen (un espacio inexplicable entre divs). Si el div tiene un borde alrededor, esto no es necesario, ya que también evita la contracción del margen */
	padding: 10px 0; /* el uso de relleno en lugar de margen le permitirá mantener el elemento alejado de los bordes del div */
	background-color: #333;
	text-align: center;
}
.oneColLiqCtrHdr #mainContent {
	padding: 0 20px; /* recuerde que el relleno es el espacio situado dentro del cuadro div y que el margen es el espacio situado fuera del cuadro div */
	background: #1a1a1a;
	text-align: left;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	
}
.oneColLiqCtrHdr #footer {
	padding: 0 10px;
	background-color: #333;
} 
.oneColLiqCtrHdr #footer p {
	margin: 0; /* el ajuste en cero de los márgenes del primer elemento del pie evitará que puedan contraerse los márgenes (un espacio entre divs) */
	padding: 10px 0; /* el relleno de este elemento creará espacio, de la misma forma que lo haría el margen, sin el problema de la contracción de márgenes */
	background-color: #333;
}
.oneColLiqCtrHdr #container #container #mainContent p {
	text-align: justify;
	color: #e0e0e0;
}
.oneColLiqCtrHdr #container #container #mainContent p a {
	color: #99cc33;
	text-align: center;
}

.menu ul{
	margin:0;
	list-style:none;
	padding:0;
	display:flex;
	justify-content: center;
	flex-direction: row;
}
.menu li a{
	display: block;
	color:#e0e0e0;
	padding:15px 20px;
	text-decoration:none;
}

.menu li:hover{background:#444}

/* ===================================
   ESTILOS DEL DASHBOARD Y GRUPO - TEMA OSCURO
   =================================== */

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #99cc33;
    border-radius: 5px;
    background-color: #2a2a2a;
}

.grupo-info {
    display: flex;
    align-items: center;
}

.grupo-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    object-fit: contain;
}

.grupo-nombre {
    font-size: 1.2em;
    font-weight: bold;
    color: #e0e0e0;
}

.usuario-info {
    text-align: center;
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #99cc33;
    border-radius: 5px;
    background-color: #2a2a2a;
}

.grupo-option {
    margin-bottom: 10px;
    text-align: left;
    border: 1px solid #99cc33;
    padding: 15px;
    border-radius: 5px;
    transition: background-color 0.3s;
    background-color: #2a2a2a;
}

.grupo-option:hover {
    background-color: #3a3a3a;
}

.grupo-rol {
    margin-top: 5px;
    color: #aaa;
}

.grupo-admin {
    border-left: 5px solid #99cc33;
}

.grupo-user {
    border-left: 5px solid #5eb3f5;
}

.grupo-secretary {
    border-left: 5px solid #ffa500;
}

.oneColLiqCtrHdr #container #container #mainContent h2, h3, h5 {
	text-align: center;
}
.oneColLiqCtrHdr #container #mainContent h2, h3 {
	text-align: center;
}
.box {
  width: 98%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #99cc33;
  border-radius: 4px;
  box-sizing: border-box;
  font-size:inherit;
  background-color: #222;
  color: #e0e0e0;
}

.box50adpt{
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #99cc33;
  border-radius: 4px;
  box-sizing: border-box;
  font-size:inherit;
  background-color: #222;
  color: #e0e0e0;
}

table{
	border-collapse: collapse;
	width: 100%;
	table-layout: fixed;
     }
	
th, td {
		height:auto;
		overflow: hidden;
		text-align: left;
  		padding: 10px;
    	border-bottom: 1px solid #444;}
		
a {
  color: #99cc33;
}

th {
  background-color: #333;
  color: #e0e0e0;
}

.buscar{
	width: 100%;
	display: inline-block;
	border: 1px solid #99cc33;
	border-radius: 4px;
	box-sizing: border-box;
	font-size:inherit;
	background-color: #222;
	background-image: url(images/iconbusc-dark.png);
	background-position: 0px 0px;
	background-repeat: no-repeat;
	margin-top: 8px;
	margin-right: 0;
	margin-bottom: 8px;
	margin-left: 0;
	padding-top: 12px;
	padding-right: 20px;
	padding-bottom: 12px;
	padding-left: 60px;
	text-align: left;
	color: #e0e0e0;
}

.button {
  width: 100%;
  margin-left: 0;
  background-color: #99cc33; 
  border: none;
  outline: none;
  color: #1a1a1a;
  padding: 10px 24px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
}

input, select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #99cc33;
  border-radius: 4px;
  box-sizing: border-box;
  font-size:inherit;
  background-color: #222;
  color: #e0e0e0;
  }

input, textarea {
  font-size:inherit;
  background-color: #222;
  color: #e0e0e0;
}

form {
  background-color:#1a1a1a;
}

.form50center{
	background-color:#1a1a1a;
	margin-left: 25%;
	margin-right: 25%;
}

label {
  padding: 0;
  display: inline-block;
  color: #e0e0e0;
}

.col-25 {
  float: left;
  width: 50%;
  margin:auto;
  margin-top: 0px;
  background-color:#1a1a1a;
}

.col-75 {
  float: left;
  width: 50%;
  margin:auto;
  margin-top: 0px;
  background-color:#1a1a1a;
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  vertical-align:middle;
}

/* Hide default HTML checkbox */
.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #1a1a1a;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #99cc33;
}

input:focus + .slider {
  box-shadow: 0 0 1px #99cc33;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

/* ===================================
   ESTILOS DE MENSAJES Y NOTIFICACIONES - TEMA OSCURO
   =================================== */

.mensaje {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.mensaje.success {
    background-color: #2d5a2d;
    border: 1px solid #4d7c0f;
    color: #84cc16;
}

.mensaje.error {
    background-color: #4d1f1f;
    border: 1px solid #7f1d1d;
    color: #ef4444;
}

/* ===================================
   ESTILOS DE ARCHIVOS Y TARJETAS - TEMA OSCURO
   =================================== */

.archivo-card {
    border: 1px solid #99cc33;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 15px;
    background-color: #2a2a2a;
}

.archivo-card:hover {
    background-color: #333;
}

.archivo-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.archivo-info {
    flex-grow: 1;
    min-width: 200px;
}

.archivo-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.archivo-meta {
    margin-top: 10px;
    font-size: 0.9em;
    color: #aaa;
}

/* ===================================
   ESTILOS DE MINIATURAS E ICONOS - TEMA OSCURO
   =================================== */

.thumbnail-container {
    width: 100px;
    height: 100px;
    margin-right: 10px;
    position: relative;
}

.archivo-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
}

.archivo-icon {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #333;
    border: 1px solid #555;
    margin-right: 10px;
    font-size: 40px;
    color: #aaa;
    border-radius: 4px;
}

/* Contenedor de miniaturas en cuadrícula */
.thumbnails-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.thumbnail-item {
    width: 150px;
    text-align: center;
    margin-bottom: 15px;
}

.thumbnail-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #333;
    margin-bottom: 5px;
}

.thumbnail-label {
    font-size: 0.9em;
    margin-top: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
    color: #e0e0e0;
}

/* Grid de miniaturas específico para pacientes */
.miniaturas-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    justify-content: flex-start;
}

.miniatura-item {
    width: 160px;
    text-align: center;
    margin-bottom: 15px;
}

.miniatura-imagen {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 8px;
}

.miniatura-nombre {
    font-size: 0.9em;
    margin: 5px 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #e0e0e0;
}

.miniatura-categoria {
    font-size: 0.8em;
    color: #aaa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.miniatura-acciones {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 10px;
}

.miniatura-acciones .btn-action {
    padding: 3px 8px;
    font-size: 12px;
}

/* ===================================
   ESTILOS DE PESTAÑAS Y NAVEGACIÓN - TEMA OSCURO
   =================================== */

.tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #99cc33;
}

.tab {
    display: inline-block;
    padding: 10px 15px;
    background-color: #333;
    border: 1px solid #555;
    border-bottom: none;
    border-radius: 4px 4px 0 0;
    margin-right: 5px;
    text-decoration: none;
    color: #e0e0e0;
}

.tab:hover {
    background-color: #444;
}

.tab.active {
    background-color: #99cc33;
    color: #1a1a1a;
    border-color: #99cc33;
}

.tab-content {
    display: block;
}

/* ===================================
   ESTILOS DE FILTROS Y FORMULARIOS - TEMA OSCURO
   =================================== */

.filtros {
    margin-bottom: 15px;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    border: 1px solid #555;
}

/* Formularios modales alternando a vistas tradicionales sin JS */
.modal-form {
    margin-top: 20px;
    padding: 15px;
    border: 1px solid #555;
    border-radius: 4px;
    background-color: #2a2a2a;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.modal-form h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #555;
    color: #e0e0e0;
}

/* ===================================
   ESTILOS DE BOTONES DE ACCIÓN - TEMA OSCURO
   =================================== */

.btn-action {
    padding: 6px 12px;
    background-color: #99cc33;
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    text-align: center;
}

.btn-action:hover {
    background-color: #84cc16;
}

.btn-action.delete {
    background-color: #dc2626;
    color: white;
}

.btn-action.delete:hover {
    background-color: #b91c1c;
}

.btn-action.edit {
    background-color: #0ea5e9;
    color: white;
}

.btn-action.edit:hover {
    background-color: #0284c7;
}

.btn-action.view {
    background-color: #3b82f6;
    color: white;
}

.btn-action.view:hover {
    background-color: #2563eb;
}

/* ===================================
   ESTILOS DE VISTA COMPLETA - TEMA OSCURO
   =================================== */

/* Vista a pantalla completa */
.fullscreen-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 80vh;
    border: 1px solid #555;
    border-radius: 4px;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.back-button {
    margin-top: 20px;
    margin-bottom: 20px;
    display: inline-block;
}

/* ===================================
   ESTILOS DE VISOR PDF - TEMA OSCURO
   =================================== */

/* PDF Viewer */
.pdf-container {
    width: 100%;
    max-width: 1000px;
    height: 80vh;
    margin: 0 auto;
    border: 1px solid #555;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    overflow: hidden;
    background-color: #2a2a2a;
}

/* ===================================
   ESTILOS DE TÍTULOS Y SECCIONES - TEMA OSCURO
   =================================== */

/* Títulos y encabezados */
.seccion-titulo {
    color: #e0e0e0;
    border-bottom: 2px solid #99cc33;
    padding-bottom: 8px;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* ===================================
   MEDIA QUERIES - RESPONSIVE - TEMA OSCURO
   =================================== */

@media screen and (max-width:500px){
	.col-25, .col-75, .box, .buscar, .button, .box50adpt{
    width: 100%;
    margin-top: 0;
    }
    .form50center{
	background-color:#1a1a1a;
	margin-left: 0px;
	margin-right: 0px;}
}

/* Media queries adicionales para los nuevos estilos */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        text-align: center;
    }
    
    .grupo-info, .usuario-info {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .usuario-info {
        text-align: center;
    }
    
    .archivo-header {
        flex-direction: column;
    }
    
    .thumbnail-container, .archivo-icon {
        margin-bottom: 10px;
        margin-right: 0;
    }
    
    .archivo-actions {
        flex-direction: column;
        margin-top: 15px;
    }
    
    .btn-action {
        width: 100%;
        margin-bottom: 5px;
    }
    
    .thumbnails-grid, .miniaturas-grid {
        justify-content: center;
    }
    
    .miniatura-item {
        width: 140px;
    }
    
    .miniatura-imagen {
        width: 120px;
        height: 120px;
    }
    
    .pdf-container {
        height: 70vh;
    }
    
    .modal-form {
        margin-left: 10px;
        margin-right: 10px;
        max-width: none;
    }
}
