body {
    font-family: Arial, sans-serif;
    margin: 0;
}

.container {
    width: 60%;
    margin: 0 auto;
}

.form-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.form-grid label {
  justify-self: start;
}

.form-grid input {
  width: 100%;
}

label {
    font-weight: bold;
}

h2 {
    margin-top: 20px;
    margin-bottom: 20px;
    color: rgba(239, 66, 113, 0.85);

}

input, textarea {
    padding: 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 70%;
}

textarea {
    height: 100px;
}

button {
    padding: 10px 20px;
    background-color: rgba(239, 66, 113, 0.85);

    color: white;
    border: none;
    cursor: pointer;
    margin-top: 20px;
}

button:hover {
    background-color: #ab1446;
}

button.secondary {
  background-color: #010834;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px 15px;
  border: 1px solid #ddd;
}

th {
  background-color: #f4f4f4;
  text-align: left;
  font-weight: bold;
}


.spinner-container {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner-text {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
    text-align: center;
}

#spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid  rgba(239, 66, 113, 0.85);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
    margin-top: 20px;
  }

  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  /* Estilo moderno para fieldset */
  .modern-fieldset {
    border: 2px solid #3498db;
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 8px;
    background-color: #f9f9f9;
  }

  .modern-fieldset legend {
    font-weight: bold;
    font-size: 1.2em;
    padding: 0 10px;
    color: #3498db;
  }






  /* Navbar estilos */
.navbar {
  background-color: #010834;
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(1, 8, 52, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: box-shadow 0.3s ease;
}

.navbar:hover {
  box-shadow: 0 4px 20px rgba(1, 8, 52, 0.4);
}

.navbar-container {
  width: 100%;
  margin: 0;
  padding: 15px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  box-sizing: border-box;
}

.navbar-logo {
  height: 45px;
  width: auto;
  margin-right: 20px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.navbar-logo:hover {
  transform: scale(1.05);
}

.navbar-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -0.025em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  flex-grow: 1;
}

.navbar-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.navbar-button {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.9rem;
  transition: background-color 0.2s ease, color 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-button:hover {
  background: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  color: white;
}

  /* Estilos generales para la página */
  .container {
    margin-top: 80px; /* Ajuste para dejar espacio debajo de la navbar */
    padding: 20px;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
  }


  fieldset {
    border-color: #b7b7b7;
    border-style: dotted;
  }

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 1rem 0;
}

.header h3 {
  margin: 0;
}

.header button {
  margin: 0;
}

.study-wrapper {
  display: flex;
  gap: 20px;
  height: 100vh;
  position: relative;
}

.study-form label {
  width: 30%;
}

.study-form section {
  margin-bottom: 50px;
}

.study-form section h4 {
  margin: 0;
}

.study-form section h4 header {
  margin-top: 0;
}

.study-form section .sub-section {
  margin-bottom: 10px;
  padding: 1rem;
  border-style: solid;
  border-width: 1px;
  border-radius: 0.625rem;
  border-color: #e5e5e5;
}
.study-form section h4 {
  margin-bottom: 15px;
}
.study-form section header {
  padding: 0;
}
.study-form section header h4 {
  margin: 0;
}

.study-form .form-group {
  display: flex;
  margin-bottom: 10px;
}

.study-form input,
.study-form select,
.study-form textarea {
  width: 70%;
  padding: 8px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  color: #333;
  box-sizing: border-box;
}

.study-form input[readonly] {
  background-color: #f5f5f5;
  border: 1px solid #ccc;
  opacity: 1;
}

.study-form .checkbox-group {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 0.3rem;
}

.study-form .checkbox-group label,
.study-form .checkbox-group input[type="checkbox"] {
  width: auto;
  margin: 0;
  padding: 0;
  font-weight: normal;
}

.study-form .checkbox-group input[type="checkbox"] {
  height: 1.5rem;
  width: 1.5rem;
}

.form-container,
.viewer-container {
  flex: 1;
  overflow-y: scroll;
  height: 100%;
  padding: 0 10px;
}

.form-container {
  margin-right: 30px;
}

.viewer-container h3 {
  margin-top: 0;
}

button:disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  opacity: 0.7;
}

.faculty {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.faculty-container button {
  padding: 2px 5px;
  margin: 0;
}

.restriction {
  display: grid;
  grid-template-columns: 1fr 1fr min-content;
  gap: 10px;
  align-items: start;
}

.restriction input,
.restriction select {
  width: 100%;
}

.restriction button {
  flex-wrap: nowrap;
}

.toggle-viewer-btn-container {
  position: absolute;
  top: 10%;
  z-index: 10;
  left: 50.3%;
  transform: translate(-50%, -50%);
}

.toggle-viewer-btn-container.viewer-hidden {
  left: calc(100% - 25px);
  transform: translateY(-50%);
}

#toggleViewer {
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.download-links {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}
.upload-form {
  padding-top: 10px;
}

.history-table th, .history-table td {
  white-space: nowrap;
}

.history-table td.expand {
  width: auto;
  white-space: normal;
}

.history-table button {
  margin-top: 0;
}

.history-table tr.child-row {
  display: none;
  background-color: #f3f4f6;
  border-left: 4px solid #ec4899;
}

.history-table tr.child-row td:first-child {
  padding-left: 3rem;
  position: relative;
}

.history-table tr.child-row td {
  color: #6b7280;
}

.history-table .info-icon {
  color: #010834;
  font-size: 1rem;
}

.tooltip {
  position: relative;
  cursor: pointer;
}

.tooltip__content {
  visibility: hidden;
  max-width: 300px;
  background-color: black;
  color: #ffffff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  top: 80%;
  left: 65%;
  margin-left: -165px;
  white-space: normal;
}

.tooltip__trigger:hover .tooltip__content {
  visibility: visible;
}
