@charset "UTF-8";
:root {
  --primary-color: #ff85b3;
  --background-color: #f9f9f9;
  --sidebar-color: #ffd1e0;
  --text-color: #333;
  --white: #fff;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-padding-top: 0rem;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  color: #000000;
  font-size: 1.6rem;
  margin: 0;
}

p {
  color: #000000;
  line-height: 1.5;
}

a {
  text-decoration: none;
}

h1, h2, h3 {
  margin: 0 0 5rem 0;
  font-weight: bold;
}

h1 {
  font-size: 4rem;
}

h2 {
  font-size: 4.6rem;
}

h3 {
  font-size: 6rem;
  text-align: center;
}

img {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

body > section {
  padding: 10rem 0;
}

/* Inputs */
.input-group {
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.input-group select,
.input-group input,
.searchProduct input {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}

/* Botones generales */
.add-btn {
  background-color: #007bff;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-btn:hover {
  background-color: #0069d9;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  margin: 5% auto;
  width: 95%;
  max-width: 1200px;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #999;
  cursor: pointer;
}

.close-btn:hover {
  color: #333;
}

/* Total */
#totalContainer {
  margin-top: 20px;
  text-align: right;
}

#totalContainer h3 {
  font-size: 20px;
  font-weight: bold;
}

.login-body {
  background-color: #fbe3ee;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  width: 100%;
  max-width: 40rem;
  padding: 2rem;
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgb(0, 0, 0);
  text-align: center;
}

.login-box h1 {
  font-size: 2rem;
  color: #e91e63;
  margin-bottom: 1rem;
}

.login-box p {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  font-size: 1.5rem;
  color: #fff;
  background-color: #e91e63;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

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

/* Tabla */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 15px;
}

table thead {
  background-color: var(--primary-color);
  color: var(--white);
}

table th,
table td {
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

table th:first-child,
table td:first-child {
  padding-left: 10px;
}

.dashboard {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* Barra Lateral */
.sidebar {
  width: 250px;
  background-color: var(--sidebar-color);
  padding: 20px;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.sidebar .brand {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.sidebar .menu {
  list-style: none;
  padding: 0;
}

.sidebar .menu li {
  margin: 20px 0;
}

.sidebar .menu li a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 5px;
  transition: all 0.3s;
}

.sidebar .menu li a:hover,
.sidebar .menu li a.active {
  background-color: var(--primary-color);
  color: var(--white);
}

/* Contenido Principal */
.main-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 15px 25px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

header h2 {
  margin: 0;
}

.logout-btn {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.logout-btn:hover {
  background-color: #ff629c;
}

/* Botón Hamburguesa */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.hamburger:focus {
  outline: none;
}

/* Tarjetas de Estadísticas */
.stats {
  display: flex;
  gap: 20px;
}

.stat-card {
  background-color: var(--white);
  flex: 1;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.stat-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.stat-card p {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.tone-entry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px dashed #ccc;
  border-radius: 6px;
}
.tone-entry input {
  flex: 1 1 140px;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
}
.tone-entry input[type=file] {
  flex: 1 1 180px;
}

#addProductForm {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
#addProductForm h4, #addProductForm #tonesSection, #addProductForm #perfumeBarcodeSection, #addProductForm button[type=submit] {
  grid-column: 1/-1;
}