/* Tema general y fuente */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  transition: background 0.3s, color 0.3s;
}

body.dark {
  background-color: #121212;
  color: white;
}

body.light {
  background-color: #f9f9f9;
  color: #222;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1em;
  border-bottom: 1px solid #444;
}

.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

/* Selector de idioma */
.custom-select {
  font-size: 1rem;
  padding: 0.3em 0.7em;
  border: none;
  border-radius: 5px;
  background-color: transparent;
  color: inherit;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none;
}

/* Estilo para evitar la flechita en todos los navegadores */
.custom-select::-ms-expand {
  display: none;
}

/* Si querés agregarle un ícono personalizado en el futuro */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
}


/* Opcional: estilos para el menú desplegable en algunos navegadores */
body.dark select {
  background-color: #222;
  color: white;
  border: 1px solid #666;
}

body.light select {
  background-color: #fff;
  color: #000;
  border: 1px solid #ccc;
}


/* Toggle de tema */
.theme-toggle {
  position: relative;
  width: 50px;
  height: 24px;
  display: inline-block;
}

.theme-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #999;
  border-radius: 24px;
  cursor: pointer;
  transition: 0.4s;
}

.slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .slider {
  background-color: #4caf50;
}

input:checked + .slider::before {
  transform: translateX(26px);
}

/* Contenido principal */
main {
  padding: 1em;
  text-align: center;
}

/* Controles */
.controls {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  align-items: center;
  margin-bottom: 1em;
}

.controls video {
  margin-top: 1em;
  max-width: 100%;
  max-height: 300px;
  border-radius: 8px;
  border: 1px solid #666;
}

.camera-controls.hidden {
  display: none;
}

.camera-controls {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 0.5em;
}



/* Botones */
button,
.custom-file-upload {
  background-color: #007bff;
  color: white;
  padding: 0.6em 1.2em;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

button:hover,
.custom-file-upload:hover {
  background-color: #0056b3;
}

button:disabled {
  background-color: #888;
  cursor: not-allowed;
}

/* Botón de archivo */
.custom-file-upload {
  display: inline-block;
}

/* Cámara */
video {
  max-width: 100%;
  max-height: 300px;
  margin-top: 1em;
  border: 2px solid #ccc;
  border-radius: 10px;
}

.hidden {
  display: none;
}

.camera-controls {
  display: flex;
  gap: 1em;
  justify-content: center;
  margin-top: 0.5em;
}

/* Área de drop */
#drop-area {
  border: 2px dashed #777;
  padding: 2em;
  margin: 1em auto;
  width: 90%;
  max-width: 600px;
  background-color: transparent;
  text-align: center;
  border-radius: 8px;
}

/* Galería */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  justify-content: center;
  margin-top: 1em;
}

.thumbnail {
  position: relative;
  width: 120px;
  cursor: grab;
}

.thumbnail img {
  width: 100%;
  border-radius: 5px;
  display: block;
  border: 1px solid #ccc;
}

.image-actions {
  display: flex;
  justify-content: center;
  gap: 0.4em;
  margin-top: 0.3em;
}

.image-actions button {
  padding: 0.4em;
  font-size: 0.8em;
  border-radius: 5px;
}
footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

footer:hover {
  opacity: 1;
}

footer a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

footer a:hover {
  color: var(--accent-color, #00bcd4);
  text-shadow: 0 0 3px var(--accent-color, #00bcd4);
}

