:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f8f9fa;
    --text-color: #2c3e50;
    --border-color: #dee2e6;
    --hover-color: #f1f3f5;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-image: url("fondo2.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
  }
  .container {
    /*background-color: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;*/
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5); 
  }
  .selectors-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  .search-container {
    position: relative;
    width: 100%;
  }

  label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--primary-color);
  }
  select,
  input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    transition: all 0.3s ease;
  }
  select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1em;
  }
  select:hover,
  input:hover {
    border-color: var(--secondary-color);
  }
  select:focus,
  input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
  }
  table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
  }
  th,
  td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
  }
  th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
  }
  tr:hover {
    background-color: var(--hover-color);
  }
  canvas {
    max-width: 1000px;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  #grafico {
    width: 100% !important;
    max-width: 1000px;
    height: 500px !important;
    margin: 2rem auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: none; /* Mantener oculto inicialmente */
}
  .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.7);
    border-bottom-width: 0px;
    border-left-width: 1px;
    border-right-width: 1px;
    border-top-width: 0px;
    border-style: solid;
    border-color: var(--border-color);
    border-radius: 0 0 6px 6px;
    box-shadow: var(--shadow);
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    margin-top: 2px;
  }
  .suggestions div {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .suggestions div:hover {
    background-color: var(--hover-color);
    color: var(--secondary-color);
  }
  .table-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  .chart-container {
    width: 100%;
    overflow-x: auto;
    margin: 2rem 0;
  }
  @media (max-width: 768px) {
    body {
      padding: 1rem;
    }
    .selectors-container {
      grid-template-columns: 1fr;
    }
    th,
    td {
      padding: 0.75rem;
    }
  }
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .suggestions div,
  table,
  canvas {
    animation: fadeIn 0.3s ease-out;
  }
  .logo-container {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1rem;
  }

  .logo {
    display: block;
    max-width: 100px;
    height: auto;
    margin: 0 auto 2rem auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }
  @media (max-width: 768px) {
    .logo {
      max-width: 150px;
    }
  }
th:nth-child(3),
th:nth-child(4),
th:nth-child(5),
th:nth-child(6),
td:nth-child(3),
td:nth-child(4),
td:nth-child(5),
td:nth-child(6) {
  width: 12%;
  min-width: 80px;
  text-align: center;
}

th:nth-child(2),
td:nth-child(2) {
  width: 25%;
}
th:nth-child(7),
td:nth-child(7) {
  text-align: center;
}

.login-section {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-section h2 {
  margin-top: 0;
  color: #333;
}

.login-section p {
  margin-bottom: 20px;
  color: #666;
}

.user-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #f0f0f0;
  border-radius: 4px;
}

#userEmail {
  font-weight: bold;
}

.sign-out-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.sign-out-btn:hover {
  background-color: #d32f2f;
}