/* Variables para colores */
:root {
    --primary: #4CAF50;
    --primary-dark: #2E7D32;
    --background: #121212;
    --card: #1e1e1e;
    --text: #fff;
    --input-bg: #292929;
  }
  
  /* Reset básico */
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    padding: 20px;
  }
  

  
  /* Main */
  .container-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
  }
  
  .form-section {
    background: var(--card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.3);
    flex: 1 1 500px;
    max-width: 600px;
  }
  
  .status-embed {
    background: var(--card);
    padding: 20px;
    border-radius: 12px;
    flex: 1 1 250px;
    max-width: 300px;
  }
  
  button#admin-login-btn i {
    animation: wiggle 1.2s ease-in-out infinite;
    display: inline-block;
}

.btn-admin {
  width: auto;
  background: black;
  color: #fff;
  font-size: 15px;
  padding: 12px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-speed);
  box-shadow: var(--shadow);
  border-radius: 20px;
}


h2, h3 {
  color: var(--primary);
  text-align: center;
  justify-self: center;
}

  /* Formulario */
  form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .form-group {
    text-align: left;
  }
  
  label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
  }
  
  input, select, textarea {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    background: var(--input-bg);
    color: var(--text);
    font-size: 1rem;
    transition: background 0.3s, box-shadow 0.3s;
    
  }
  
  input:focus, select:focus, textarea:focus {
    background: #3a3a3a;
    box-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
    outline: none;
  }
  
  textarea {
    resize: vertical;
    max-height: 200px;  
  }
  
  /* Imagen */
  #preview-container img {
    width: 100%;
    max-height: 250px;
    border-radius: 8px;
    object-fit: contain;
  }
  
  /* Botón */
  button {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--text);
    padding: 12px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
  }
  
  button:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    transform: scale(1.05);
  }
  
  button:active {
    transform: scale(0.95);
  }
  
  /* Estado del reporte */
  #status-list {
    list-style: none;
    padding: 0;
  }



/* Imagen de vista previa */
#preview-container {
  position: relative;
  margin-top: 10px;
  display: inline-block;
  left: 10%;
}

#preview-container img {
  width: 100%;
  max-height: 250px;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}

#preview-container img:hover {
  transform: scale(1.02);
}

#btn-cancelar-img {
  position: absolute;
  top: -10px;
  right: -10px;
  background-color: #e74c3c;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease;
  z-index: 10;
  padding: 0;
}

#btn-cancelar-img i {
  color: white;
  font-size: 14px;
  pointer-events: none; /* evita problemas al hacer clic */
}

#btn-cancelar-img:hover {
  background-color: #c0392b;
}


/* Loader de carga */
.loader {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 50px 0;
  color: #aaa;
  animation: fadeIn 0.5s ease;
  text-align: center;
}

.loader i {
  font-size: 48px;
  margin-bottom: 10px;
  animation: spin 2s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0); }
  100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

  /* Tarjeta de reporte */
  /* .reporte-card {
    background: #353554;
    border: 1px solid #4f4f7a;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    position: relative;
    
  } */


  .reporte-card {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
  }
  
  
  .reporte-card h3 {
    color: var(--primary);
    margin-bottom: 20px;
    position: absolute;
    text-align: center;
    display: contents;
}
  
  .reporte-card p {
    font-size: 16px;
    margin-bottom: 10px;
    color: #dcdcdc;
  }
  
  .reporte-card small {
    font-size: 14px;
    color: #aaa;
  }
  
  /* Imagen en reporte */
  .reporte-card img {
    margin-top: 12px;
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    display: block;
  }
  
  /* Select de estados */
  .reporte-card select {
    margin-top: 15px;
    padding: 10px;
    background: #494970;
    color: #fff;
    border: 1px solid #5c5ca0;
    border-radius: 8px;
    font-size: 15px;
    transition: background 0.3s;
    cursor: pointer;
  }
  
  .reporte-card select:hover {
    background: #5a5a8b;
  }
  
  /* Estado dinámico */
  .estado-pendiente {
    color: #ffcc00;
  }
  
  .estado-leído {
    color: #4fc3f7;
  }
  
  .estado-en-revisión {
    color: #ff7043;
  }
  
  .estado-solucionado {
    color: #66bb6a;
  }
  
  /* Ícono de estado arriba a la derecha */
  .reporte-card::after {
    content: "";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
  }
  
  .reporte-card.estado-pendiente::after {
    color: #ffcc00;
  }
  
  .reporte-card.estado-leído::after {
    color: #4fc3f7;
  }
  
  .reporte-card.estado-en-revisión::after {
    color: #ff7043;
  }
  
  .reporte-card.estado-solucionado::after {
    color: #66bb6a;
  }
  
  
  #contenedor-principal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    width: 40%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

  #status-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
  }
  
  #status-list li i {
    color: var(--primary);
  }
  
  /* Utilidades */
  .hidden {
    display: none;
  }
  
  /* Responsivo */
  @media (max-width: 768px) {
    .container-wrapper {
      flex-direction: column;
      align-items: center;
    }
  }
  

  

  .custom-file-upload {
    display: inline-block;
    cursor: pointer;
    padding: 10px 20px;
    background-color: #4CAF50; /* Color verde bonito */
    color: white;
    border-radius: 8px;
    font-size: 16px;
    transition: background-color 0.3s;
  }

#menu-principal {
    justify-self: center;
    display: flow;
    margin-top: 5%;
}
  
  .custom-file-upload:hover {
    background-color: #45a049;
  }
  
  .custom-file-upload i {
    margin-right: 8px;
  }
  
  #login-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 15, 15, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
  }
  
  .login-box {
    background: #1e1e1e;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 0 25px rgba(0, 255, 255, 0.15);
    width: 100%;
    max-width: 500px; /* Aumentado desde 400px */
    text-align: center;
    color: #fff;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .login-box h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem; /* Aumentado */
    color: #00ffff;
  }
  
  .login-box input {
    display: block;
    width: 100%;
    margin: 0.8rem 0;
    padding: 0.8rem;
    border: none;
    border-radius: 8px;
    background: #2b2b2b;
    color: #fff;
    font-size: 1.1rem;
    outline: none;
  }
  
  .login-box input:focus {
    box-shadow: 0 0 6px #00ffff;
  }
  
  .login-box button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem;
    background: #00ffff;
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .login-box button:hover {
    background: #00cccc;
  }
  
  #toggle-form {
    color: #aaa;
    font-size: 1rem;
    text-decoration: underline;
    cursor: pointer;
    display: inline-block;
  }
  
  #toggle-form:hover {
    color: #fff;
  }
  
  #btn-verificar-codigo {
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    margin-bottom: 0.6rem;
    padding: 0.6rem;
    font-size: 1rem;
  }
  
  #btn-verificar-codigo:hover {
    background: #00ffff;
    color: #000;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  #blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: white;
    font-family: sans-serif;
  }
  
.login {
    background-color: var(--primary-color);
    color: #fff;
    font-size: 1rem;
    padding: 12px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow);
    width: auto;

}



  .loading-box {
    text-align: center;

  }
  
  .spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
    justify-self: anchor-center;
  }
  
  @keyframes spin {
    to { transform: rotate(360deg); }
  }
  


  #btn-extra {
    position: absolute;
    justify-self: anchor-center;
    left: 20%;
    display: grid;
    gap: 5px;
}



.btn-admin:hover {
  transform: scale(1.05);
  background: white;
  color: black;
}

#btn-logout {
  background: black;
}

#btn-logout:hover {
  background: red;
}