*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body.login-body {
  height: 100vh;
  background: url('img/fondo.jpg') no-repeat center center fixed;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Arial, sans-serif;
      color: #898989;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    line-height: normal;
    font-weight: 300;
  overflow-x: hidden !important;

}



.login-container {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  text-align: center;
  width: 300px;
}

/******login***********/
.btn-login {
  width: 100%;
  background-color: #3498db;
  color: white;
  padding: 10px;
  margin-top: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.btn-login:hover {
  background-color: #2980b9;
}

p {
  margin-top: 10px;
}

a {
  text-decoration: none;
  color: #3498db;
}

a:hover {
  text-decoration: underline;
}
/*******logo**********/

.logo {
  width: 150px;
  margin-bottom: 20px;
}

/* Contenedor principal */
.container {
  display: flex;
  height: 100vh;
}

/* Barra lateral */ /* ==== Sidebar ==== */

.sidebar {
  width: 260px;
  background-color: #122738;
  padding: 20px;
  box-sizing: border-box;
  color: #ecf0f1;
  overflow-y: auto;
}

.sidebar h1 {
  font-size: 20px;
  margin-bottom: 20px;
}

.sidebar h2 {
  color: #ecf0f1;
  font-size: 18px;
  margin-bottom: 15px;
}

.sidebar a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #34495e;
  transition: background-color 0.2s ease-in-out;
}

.sidebar a:hover {
  background-color: #34495e;
  padding-left: 10px;
}

.usuario-info {
  margin-top: 30px;
  font-size: 14px;
}

/* Contenido principal */
.main-content {
  flex: 1;
  padding: 30px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

/* Título */
.titulo-listado {
  text-align: center;
  margin-top: 20px;
  color: #333;  
  font-size: 24px;
  margin-bottom: 20px;
}

/***** barra de arriba*******/

.menu-group {
  margin-bottom: 25px;
  background-color: #f1f2f6;
  border-left: 4px solid #2f3542;
  padding: 10px;
  border-radius: 5px;
}

.menu-group h3 {
  font-size: 15px;
  margin-bottom: 8px;
  color: #2f3542;
  border-bottom: 1px solid #ced6e0;
  padding-bottom: 3px;
}

.menu-group a {
  display: block;
  padding: 6px 10px;
  color: #ee1e0f;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 4px;
  border-radius: 4px;
}

.menu-group a:hover {
  background-color: #dcdde1;
}
/**********************************/
/* ==== Estilos generales ==== */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f8f9fa;
}

/* ==== Contenedor principal con sidebar y contenido ==== */
.container {
  display: flex;
  height: calc(100vh - 50px); /* menos la altura de la barra superior */
}

/* ====Estilo del titulo del sistema ==== ==== Barra superior (usuario y logout) ==== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f13b0e;
  color: white;
  padding: 10px 20px;
  font-size: 15px;
}

.top-left {
  font-weight: bold;
}

.top-right a {
  color: #002fff;
  margin-left: 10px;
  text-decoration: none;
}

.top-right a:hover {
  text-decoration: underline;
}

.top-bar strong {
  color: #ffffff;
}

/* ==== Grupos de menú en sidebar ==== */
.menu-group {
  margin-bottom: 20px;
}

.menu-group h2 {
  font-size: 16px;
  margin-bottom: 10px;
  color: #f13b0e;
}

/* ==== Enlaces del menú ==== */
.sidebar a {
  display: block;
  color: #99a0a0;
  text-decoration: none;
  margin: 5px 0;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.sidebar a:hover {
  background-color: #34495e;
}

/* ==== Contenido principal ==== */
.main-content {
  flex: 1;
  padding: 0;
  overflow-y: auto;
}

/* ==== Iframe de contenido ==== */
iframe {
  width: 100%;
  height: 100%;
  border: none;
}


/* Coloca la primera letra de cada palabra en mayuscula */
.capitalizar {
  text-transform: capitalize;
}

/* Convierte todo en minúsculas */
.minuscula {
  text-transform: lowercase;
}
/************************/
/* ===== ESTILOS REGISTRAR PERSONAL ===== */

.contenedor-formulario {
  max-width: 900px;
  margin: 20px auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

.titulo-formulario,
.titulo-tabla {
  color: #2c3e50;
  font-size: 24px;
  margin-bottom: 20px;
  border-bottom: 2px solid #3498db;
  padding-bottom: 5px;
}



.formulario-personal label {
  flex: 1;
  min-width: 150px;
  font-weight: bold;
  color: #333;
}

.formulario-personal input,
.formulario-personal select {
  flex: 2;
  min-width: 180px;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
}
/********boton centro********/
.boton-centro {
  text-align: center;
  margin-top: 20px;
}

.boton-centro button {
  background-color: #3498db;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
}

.boton-centro button:hover {
  background-color: #2980b9;
}


.tabla-personal {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
}

.tabla-personal th,
.tabla-personal td {
  padding: 10px;
  border: 1px solid #ddd;
  text-align: center;
}

.tabla-personal thead {
  background-color: #3498db;
  color: white;
}

.tabla-personal tr:nth-child(even) {
  background-color: #f2f2f2;
}
/* ==== Boton editar y eliminar personal ==== */
.btn-editar, .btn-eliminar {
  display: inline-block;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border-radius: 4px;
  width: 100px; /* Igual ancho para ambos */
  box-sizing: border-box;
}

.btn-editar {
  background-color: skyblue;
  color: white;
}
.btn-editar:hover {
  background-color: rgb(30, 178, 207);
}

.btn-eliminar {
  background-color: #e45e4f;
  color: white;
}
.btn-eliminar:hover {
  background-color: #f3260f;
}

/* ====interfas elimiar_personal ===*/
.datos-confirmacion {
  background-color: #fff7f7;
  border: 1px solid #e0b4b4;
  padding: 15px;
  margin-top: 15px;
  border-radius: 5px;
}


.btn-cancelar {
  text-decoration: none;
  background-color: #6c757d;
  color: white;
  padding: 10px 20px;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
}

.btn-cancelar:hover {
  background-color: #5a6268;
}
/****notiificacion eliminar*********/
.notificacion {
  margin: 20px auto;
  width: fit-content;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  animation: aparecer 0.5s ease-in-out;
}

.notificacion.exito {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

@keyframes aparecer {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
/**** MENSAJE DE ELIMINAR**********/
.mensaje-exito {
  background-color: #e0ffe0;
  border: 1px solid #30a030;
  color: #207020;
  padding: 12px 20px;
  margin: 20px 0;
  border-radius: 8px;
  font-weight: bold;
  font-size: 16px;
  text-align: center;
}

.btn-volver {
  display: inline-block;
  background-color: #30a030;
  color: white;
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.btn-volver:hover {
  background-color: #248024;
}


/* Estilo para ventana editar más ajustada */
.editar-popup {
  width: 50px;
  margin: 30px auto;
  padding: 30px;
  background-color: #fefefe;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
  font-family: 'Segoe UI', sans-serif;
}



/* Ajustes generales para el formulario editar */

.formulario-personal .fila {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  align-items: center
}
.fila label {
  min-width: 100px;
}
.fila input, .fila select {
  flex: 1;
}

.formulario-personal label {
  flex: 1;
  font-weight: bold;
  margin-bottom: 5px;
}

.formulario-personal input,
.formulario-personal select {
  flex: 2;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Estilo para el formulario de una sola columna */
.formulario-personal-columna {
  display: flex;
  flex-direction: column;
}

.formulario-personal-columna label {
  margin-top: 12px;
  font-weight: bold;
}

.formulario-personal-columna input,
.formulario-personal-columna select {
  padding: 8px;
  margin-top: 4px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* Botón centrado */
.boton-centro {
  text-align: center;
  margin-top: 20px;
}

/* Botón de actualizar */
.btn-actualizar {
  background-color: #28a745;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.btn-actualizar:hover {
  background-color: #218838;
}


/****************************/
.form-container, .table-container {
  max-width: 600px;
  margin: 20px auto;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  border-radius: 8px;
}

h2 {
  text-align: center;
  margin-bottom: 15px;
}

.styled-form label {
  display: block;
  margin: 10px 0 5px;
}

.styled-form input[type="text"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.styled-form button {
  background-color: #007BFF;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.styled-form button:hover {
  background-color: #0056b3;
}

.table-container table {
  width: 100%;
  border-collapse: collapse;
}

.table-container th, .table-container td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: left;
}

.table-container th {
  background-color: #f0f0f0;
}

/***************registrar oficna*********/
/* Contenedor principal */
.contenedor-principal {
  max-width: 900px;
  margin: 20px auto;
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
}

/* Títulos */
h2, h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

/* Formulario */
.formulario {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.formulario input, .formulario button {
  padding: 8px;
  font-size: 16px;
}

.formulario button {
  background-color: #3498db;
  color:  #fff;
  border: none;
  cursor: pointer;
  transition: 0.3s;
}

.formulario button:hover {
  background-color: #2980b9;
}

/* Tabla */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

table th, table td {
  padding: 8px;
  border: 1px solid #cccccc;
  text-align: center;
}

table th {
  background-color: #3498db; /* o el color que prefieras */
  color: white;              /* texto en blanco */
  font-weight: bold;
}


/* Buscador */
.buscador {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

/*******formulario de igresar "registra "***********/
.form-grupo {
  display: flex;
  align-items: center;
  gap: 10px; /* Espacio entre los elementos */
  margin-bottom: 20px;
}

.form-grupo label {
  font-weight: bold; /* Texto en negrita */
  margin-right: 10px;
}

.form-grupo input[type="text"] {
  padding: 5px 10px;
  font-size: 16px; /*Esta línea controla el tamaño de letra de los inputs de texto */
  border: 1px solid #ccc;
  border-radius: 4px;
}

.btn-registrar {
  background-color: #3498db;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-registrar:hover {
  background-color: #2980b9;
}

/******estilo para hora de llegada y hora de salida*****/

input[type="time"] {
  width: 100%;
  padding: 8px;
  font-size: 14px;
  box-sizing: border-box;
}
/* Campos de hora ajustados */
.hora-input {
  width: 120px;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
}


/*botone de reporte_general*/
.input-fecha {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.input-busqueda {
    padding: 6px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.btn {
    padding: 6px 12px;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.btn-filtrar {
    background-color: #28a745;
    color: white;
}

.btn-excel {
    background-color: #007bff;
    color: white;
}


.boton-centro {
    text-align: center;
}

.boton-centro button {
    background: linear-gradient(to right, #007BFF, #00AEEF);
    color: white;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.boton-centro button:hover {
    background: linear-gradient(to right, #0056b3, #0083c7);
}

.filas {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 25px;
}

.formu label {
    font-weight: 600;
    color: #444;
    font-size: 15px;
}

.formu {
    background-color: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid #e0e0e0;
    font-family: 'Segoe UI', sans-serif;
}

.formu select,
.formu input[type="text"],
.formu input[type="password"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    padding: 12px 16px;
    font-size: 15px;
    color: #333;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04);
    width: 100%;
    transition: all 0.3s ease;
    background-image: url('data:image/svg+xml;charset=UTF-8,<svg fill="%23555" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
}

.formu select:focus,
.formu input[type="text"]:focus,
.formu input[type="password"]:focus {
    border-color: #007BFF;
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}
/* === INICIO - ESTILO COMPLETO DE PÁGINA DE BIENVENIDA === */

html, body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  height: 100%;
}

/* Aplica solo a inicio.php */
body.solo-inicio {
  background-color: #f2f2f2;
  overflow: hidden;
}


.fondo-gris {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.contenedor-inicio {
  width: 95%;
  max-width: 1200px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 85vh;
}

/* CABECERA  */
.cabecera-verde {
  background-color: #f13b0e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.logo-ugel {
  width: 100px;
  height: 100px;
  border-radius: 70%;
  object-fit: cover;
  background-color: white;
  padding: 3px;
}

.texto-central {
  text-align: center;
  flex-grow: 1;
}

.titulo-bienvenida {
  margin: 0;
  font-size: 60px;
  font-weight: bold;
}

.titulo-bienvenida span {
  font-weight: bold;
}

.subtitulo {
  margin-top: 5px;
  font-size: 26px;
  color: #e0f0e0;
  font-weight: normal;
}

/* DATOS USUARIO */
.datos-usuario {
  display: flex;
  justify-content: space-around;
  background-color: #ffffff;
  padding: 15px 10px;
  font-size: 16px;
  border-top: 1px solid #ccc;
  color: #333;
}

/* PIE DE PÁGINA */
.pie-inicio {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  background-color: #eeeeee;
  padding: 10px 25px;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #ccc;
}
/* === Contenedor con scroll para la tabla === */
.tabla-responsive {
  max-height: 300px; /* Aprox. 4 filas visibles según tu diseño */
  overflow-y: auto;
  overflow-x: auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #fff;
  padding: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.05);
}

/* Mantiene el ancho de las columnas y evita que se rompa la tabla */
.tabla-personal {
  min-width: 1200px; /* evita que las columnas se compriman demasiado */
}

/* usuario*/
.usuario-box {
  background: #fff;
  padding: 15px 10px;
  border-bottom: 1px solid #ccc;
  text-align: center;
}

.foto-perfil {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
}

.inicial-perfil {
  width: 60px;
  height: 60px;
  background-color: #007bff;
  color: white;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
}

.cambiar-foto {
  font-size: 11px;
  color: #555;
}

.eliminar-foto {
  font-size: 11px;
  color: red;
  border: none;
  background: none;
  cursor: pointer;
  margin-top: 4px;
}

.nombre-usuario {
  font-size: 14px;
  font-weight: bold;
}

.rol-usuario {
  font-size: 12px;
  color: #666;
}
