/* ======== ESTILOS GENERALES ======== */
body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f4f4f4;
}

h1, h2 {
  margin: 0 0 20px;
  color: #2c3e50;
}

/* ======== SIDEBAR ======== */
.sidebar {
    width: 220px;
    background-color: #1f2d3d;
    color: white;
    height: 100vh;
    position: fixed;
    padding-top: 20px;
    overflow-y: auto;
}

.sidebar h2 {
    padding-left: 20px;
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
}

.sidebar a:hover {
    background-color: #3c4a5d;
}

.menu-item {
    position: relative;
}

.submenu {
    display: none;
    padding-left: 15px;
    background-color: #273746;
}

.submenu a {
    font-size: 14px;
    padding: 8px 20px;
}

.sidebar .has-submenu::after {
    content: "▼";
    float: right;
    margin-right: 10px;
}

/* ======== CONTENIDO PRINCIPAL ======== */
.main {
  margin-left: 220px;
  padding: 20px;
}

/* ======== LOGIN ======== */
.login-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  background-color: #f0f2f5;
}

.login-box {
  background-color: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0,0,0,0.1);
  width: 300px;
  text-align: center;
}

.login-box input[type="text"],
.login-box input[type="password"] {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.login-box button {
  width: 100%;
  padding: 12px;
  background-color: #1f2d3d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
}

.login-box button:hover {
  background-color: #34495e;
}

/* ======== BOTONES GENERALES ======== */
button {
  padding: 10px 18px;
  border: none;
  border-radius: 4px;
  background-color: #1f2d3d;
  color: white;
  cursor: pointer;
  font-size: 14px;
  margin: 5px 0;
}

button:hover {
  background-color: #34495e;
}

/* ======== FORMULARIOS GENERALES ======== */
input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
select {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
  box-sizing: border-box;
  background-color: white;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='gray' 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 10px center;
  background-size: 16px;
}

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

th, td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #f0f0f0;
}

input[type="checkbox"] {
  transform: scale(1.3);
}

/* ======== BUSCADOR ======== */
#buscador_marcas,
#buscador_categorias,
#buscador_subcategorias,
#buscador_productos {
  width: 300px;
  padding: 10px;
  margin-bottom: 15px;
}

/* ======== PAGINACIÓN ======== */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination a {
  color: #1f2d3d;
  padding: 8px 12px;
  margin: 0 3px;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.pagination a:hover {
  background-color: #f0f0f0;
}

.pagination a.active {
  background-color: #1f2d3d;
  color: white;
  border-color: #1f2d3d;
}