/* /assets/css/style.css */

body {
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto 1px auto;
    padding: 1px 40px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

/* Ajuste para el primer container luego del header */
body > .container:first-of-type {
    margin-top: 10px;
}

h1, h2, h3 {
    color: #222;
}

h2 {
    margin-top: 30px;
    font-size: 20px;
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

/* BOTÓN AMARILLO GLOBAL */
.btn,
input[type="submit"],
button[type="submit"] {
    padding: 8px 14px;
    background-color: #ffdd33;
    color: #333;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: background 0.2s ease;
}

.btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
    background-color: #f7cb00;
}

.success {
    color: green;
    font-weight: bold;
}

.error {
    color: red;
    font-weight: bold;
}

input, select {
    padding: 8px;
    font-size: 14px;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin: 5px 0;
}

details summary {
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* HEADER STYLING */
header {
    background: #333;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 20px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

nav ul li {
    display: inline;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* QuickSearch refinado */
form.quicksearch-form {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

form.quicksearch-form input[type="text"],
form.quicksearch-form select {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 8px;
    flex: 1 1 200px;
}

/* Estilo para cada grupo de búsquedas */
details {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    flex: 1 1 350px;
    transition: box-shadow 0.3s ease;
}

details:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

details summary {
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

/* Lista ordenable */
.sortable-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sortable-list li {
    padding: 6px 0;
    border-bottom: 1px dashed #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Íconos y acciones */
.sortable-list li span {
    font-size: 14px;
}

.sortable-list li div a {
    margin-left: 8px;
    font-size: 16px;
    text-decoration: none;
}

.sortable-list li div a:hover {
    opacity: 0.7;
}

/* Form edición inline */
.sortable-list form {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    background: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

.sortable-list form input {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 6px;
}
/* Organización del panel de QuickSearch */
.quicksearch-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}
.sidebar-menu {
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.sidebar-menu h3 {
  font-size: 16px;
  margin-bottom: 10px;
  font-weight: bold;
}

.sidebar-link {
  display: block;
  padding: 8px 12px;
  margin: 4px 0;
  border-radius: 6px;
  background-color: transparent;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.sidebar-link:hover {
  background-color: #f0f0f0;
  color: black;
}

.sidebar-link.active {
  background-color: #ffdd33;
  color: black;
  font-weight: bold;
}
.btn {
    padding: 6px 12px;
    font-size: 14px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin: 2px 4px;
    transition: background 0.2s ease;
}

.btn-agregar {
    background-color: #ffdd33;
    color: #333;
}

.btn-agregar:hover {
    background-color: #f7cb00;
}

.btn-editar {
    background-color: #e0f0ff;
    color: #004488;
}

.btn-editar:hover {
    background-color: #cde8ff;
}

.btn-eliminar {
    background-color: #ffe0e0;
    color: #990000;
}

.btn-eliminar:hover {
    background-color: #ffcccc;
}

.btn-subir {
    background-color: #e8ffe8;
    color: #226600;
}

.btn-subir:hover {
    background-color: #d2f8d2;
}
/* Menú lateral */
.menu-lateral {
  background-color: #fff;
  width: 240px;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.menu-lateral ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lateral ul li {
  margin-bottom: 6px;
}

.menu-lateral a {
  display: block;
  padding: 8px 12px;
  background: #f9f9f9;
  border-radius: 8px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: background 0.2s;
}

.menu-lateral a:hover {
  background: #ffefaa;
}

/* Panel derecho */
.panel-container {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.05);
  padding: 20px;
}
/* Mini panel visual para filtros de búsqueda */
.filtros-panel {
  background: #f9f9f9;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Etiquetas internas */
.filtros-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
  margin: 0;
}

/* Inputs y selects */
.filtros-panel select,
.filtros-panel input[type="checkbox"] {
  font-weight: normal;
  font-size: 14px;
  padding: 6px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Agrupador visual para filtros */
.filtros-panel .grupo-filtros {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  border-right: 1px solid #ddd;
  padding-right: 20px;
  margin-right: 20px;
}

.filtros-panel .grupo-filtros:last-of-type {
  border-right: none;
  padding-right: 0;
  margin-right: 0;
}
/* === MENÚ DESPLEGABLE HEADER SUPERIOR === */
.menu-container {
  position: relative;
  display: inline-block;
}

.menu-boton {
  background: white;
  color: #333;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10;
  min-width: 180px;
  flex-direction: column;
}

.menu-container:hover .dropdown {
  display: flex;
}

.dropdown a {
  padding: 10px 16px;
  text-decoration: none;
  color: #333;
  display: block;
}

.dropdown a:hover {
  background: #f5f5f5;
}