/* -------------------------------------------------------------
   style.css
   Estilo base del Sistema de Inventario Infomótica®
   ------------------------------------------------------------- */

/* ======== Configuración general ======== */
* {
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

.logo-header {
    height: 100px;
    margin-bottom: 5px;
}

header {
    background-color: #0047ba;
    color: white;
    padding: 10px 0;
    text-align: center;
}

body {
  margin: 0;
  background-color: #f5f5f5;
  color: #222;
}

/* ======== Encabezado azul superior ======== */
.top-bar {
  background-color: #0052cc;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  margin-right: 15px;
}

.top-bar a:hover {
  text-decoration: underline;
}

/* ======== Botones ======== */
.btn {
  padding: 8px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s ease;
}

.btn-primary {
  background-color: #0052cc;
  color: #fff;
}

.btn-primary:hover {
  background-color: #003e9f;
}

.btn-secondary {
  background-color: #e53935;
  color: #fff;               
}

.btn-secondary:hover {
  background-color: #c62828; 
}

.btn-reportes {
  background-color: #129a39;
  color: #fff;               
}

.btn-reportes:hover {
  background-color: #1c8236; 
}

.btn-danger {
  background-color: #d32f2f;
  color: #fff;
}

.btn-danger:hover {
  background-color: #b71c1c;
}

/* ======== Tarjetas (cards) ======== */
.card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

/* ======== Tablas ======== */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th, td {
  border: 1px solid #ddd;
  padding: 6px 8px;
  text-align: left;
}

th {
  background: #f0f4ff;
}

/* ======== Formularios ======== */
label {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 13px;
  margin-bottom: 10px;
}

textarea {
  resize: vertical;
}

/* ======== Mensajes ======== */
.msg {
  margin-top: 8px;
  font-size: 13px;
  min-height: 18px;
}

.msg.ok {
  color: #1b5e20;
}

.msg.error {
  color: #b71c1c;
}

/* ======== Contenedor principal ======== */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
}

/* ======== Toolbar ======== */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* ======== Cuadrícula de menú ======== */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.menu-item {
  background: #fff;
  text-align: center;
  padding: 25px 10px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease;
  cursor: pointer;
}

.menu-item:hover {
  transform: translateY(-4px);
  background: #eaf1ff;
}

.menu-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.menu-item span {
  display: block;
  font-weight: 600;
  color: #0052cc;
}

/* ======== Pie de página ======== */
.footer {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 30px;
}

.producto-imagen {
  text-align: left;
}

.producto-imagen img {
  display: block;
  max-width: 250px;
  height: auto;
  margin: 5px 0;
}

.input-disabled {
  background-color: #f2f2f2;
  color: #555;
  cursor: not-allowed;
}