body {
  font-family: 'Segoe UI', 'Inter', Arial, sans-serif;
  margin: 0;
  background: #0a0a0a;
  color: #f5f5f5;
}


.app {
  display: flex;
  height: 100vh;
}

/* 
   SIDEBAR */
.sidebar {
  width: 20%;
  background: #141414;
  padding: 25px;

  display: flex;
  flex-direction: column;
  gap: 20px;

  overflow-y: auto;
  border-right: 1px solid #222;
}

/* FAVORITAS */
#favoritas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* BOTONES FAVORITAS */
#favoritas button {
  padding: 10px;
  background: #2a2a2a;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
}

#favoritas button:hover {
  background: #3a3a3a;
}

/*
   CONTENIDO */
.contenido {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/*
   PALETA
 */
#paleta {
  width: 650px;
  margin: 30px auto;

  display: grid;
  grid-template-rows: repeat(2, 1fr);
  grid-auto-flow: column;

  gap: 20px;
  padding: 15px;
}

/* TARRO COLOR */
.color {
  width: 130px;
  height: 190px;

  border-radius: 14px 14px 30px 30px;
  border: 3px solid #333;

  position: relative;
  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* HOVER */
.color:hover {
  transform: scale(1.12);
  z-index: 10;
  box-shadow: 0 15px 25px rgba(0,0,0,0.4);
}

/* TAPA */
.color::before {
  content: "";
  position: absolute;
  top: 0;
  width: 100%;
  height: 20px;
  background: #555;
  border-radius: 12px 12px 0 0;
  z-index: 2;
}

/* COLOR INTERNO */
.color::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 85%;
  background: var(--color);
  z-index: 0;
}

/*
   INFO (CÓDIGOS)*/

.color-info {
  width: 92%;
  margin-bottom: 12px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);

  padding: 10px 12px;
  border-radius: 12px;

  z-index: 3;
}

/* CONTENEDOR TEXTO */
.codes {
  display: flex;
  flex-direction: column;
}

/* HEX */
.hex {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255,255,255,0.2);
}

/* HSL */
.hsl {
  font-size: 13px;
  color: #d0d0d0;
  opacity: 0.85;
}

/*  CANDADO */
.lock {
  background: rgba(0,0,0,0.7);
  border: none;
  cursor: pointer;

  font-size: 16px;
  color: white;

  border-radius: 50%;
  padding: 6px;

  transition: transform 0.2s;
}

.lock:hover {
  transform: scale(1.25);
}

/* BLOQUEADO */
.color.locked {
  border: 3px solid #ffffff;
}

/*   TITULOS */
h1 {
  font-size: 70px;
  margin-bottom: 10px;

  background: linear-gradient(
    90deg,
    red,
    white,
    red,
    green,
    blue,
    crimson
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 26px;
  margin-bottom: 10px;
  color: #ccc;
}

h3 {
  font-size: 18px;
  color: #aaa;
}

/* CONTROLES */
select, button {
  font-size: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
}

button {
  background: #2f2f2f;
  color: white;
  cursor: pointer;
}

button:hover {
  background: #444;
}

/* ACCIONES */
.acciones {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}

/* FAVORITAS */
.paleta-fav {
  background: #2a2a2a;
  padding: 12px;
  border-radius: 12px;
}

/* PREVIEW */
.preview {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.mini-color {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}
.principal {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.secundario {
  font-size: 12px;
  opacity: 0.7;
}
.hex {
  color: #ffffff;
}

.hsl {
  color: #d0d0d0;
}
#toast {
  position: fixed;
  bottom: 30px;
  right: 30px;

  background: #1f1f1f;
  color: white;

  padding: 12px 18px;
  border-radius: 10px;
  

  opacity: 0;
  transform: translateY(20px);

  transition: all 0.4s ease;

  pointer-events: none;
  z-index: 999;
}

/* CUANDO SE MUESTRA */
#toast.show {
  opacity: 1;
  transform: translateY(0);

}

.header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.hint {
  font-size: 12px;
  opacity: 0.7;
  text-align: right;
  max-width: 200px;
}