/* Reset de estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Estructura principal */
html, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
} 

/* Cabecera */
header {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 0.25rem 2rem;
  box-shadow: 0 0 8px 8px rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 3rem;
  z-index: 2;
}

header h1 {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 3px;
  margin-top: 0.1rem;
  font-family: var(--font-family-header);
} 

/* Estilos para el modal de restauración de datos */
#restore-data-modal .modal-content {
  max-width: 500px;
  width: 90%;
}

#restore-data-modal h3 {
  color: var(--color-white);
  font-family: var(--font-family-header);
  margin-bottom: 16px;
  text-align: center;
}

.restore-info {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
}

.restore-info p {
  margin: 0 0 8px 0;
  color: var(--color-white);
  font-family: var(--font-family-body);
  font-size: 14px;
}

.restore-info p:last-child {
  margin-bottom: 0;
}

.restore-preview {
  margin-top: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-item:last-child {
  border-bottom: none;
}

.preview-label {
  color: var(--color-light-gray);
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 12px;
}

.preview-value {
  color: var(--color-white);
  font-family: var(--font-family-body);
  font-size: 12px;
  text-align: right;
  word-break: break-all;
  max-width: 60%;
}

.more-fields {
  color: var(--color-light-gray);
  font-family: var(--font-family-body);
  font-size: 11px;
  font-style: italic;
  margin: 8px 0 0 0;
  text-align: center;
}

.no-data {
  color: var(--color-light-gray);
  font-family: var(--font-family-body);
  font-size: 12px;
  text-align: center;
  margin: 0;
  font-style: italic;
}

#restore-data-modal .modal-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}

#restore-data-modal .modal-actions button {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  font-family: var(--font-family-body);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

#restore-data-modal .btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

#restore-data-modal .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

#restore-data-modal .btn-primary {
  background: var(--color-blue);
  color: var(--color-white);
  border: 1px solid var(--color-blue);
}

#restore-data-modal .btn-primary:hover {
  background: var(--color-blue-dark);
  border-color: var(--color-blue-dark);
}



/* Responsive para móviles */
@media (max-width: 768px) {
  #restore-data-modal .modal-content {
    width: 95%;
    max-width: none;
    margin: 20px auto;
  }
  

  
  .preview-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .preview-label {
    margin-right: 0;
  }
  
  .preview-value {
    max-width: 100%;
    text-align: left;
  }
  
  #restore-data-modal .modal-actions {
    flex-direction: column;
  }
  
  #restore-data-modal .modal-actions button {
    width: 100%;
  }
}

/* Estilos para restauración múltiple de pestañas */
#restore-tabs-info {
  font-family: var(--font-family-body);
  font-weight: 500;
}

#restore-tabs-count {
  color: var(--color-blue);
  font-family: var(--font-family-body);
  font-weight: 600;
}

.multiple-tabs-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tab-preview {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  transition: all 0.2s ease;
}

.tab-preview:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.tab-preview-header {
  color: var(--color-blue);
  font-family: var(--font-family-header);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.tab-preview-main {
  color: var(--color-white);
  font-family: var(--font-family-body);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}

.more-tabs {
  color: var(--color-light-gray);
  font-family: var(--font-family-body);
  font-size: 11px;
  font-style: italic;
  margin: 4px 0 0 0;
  text-align: center;
  padding: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

/* Responsive para múltiples pestañas */
@media (max-width: 768px) {
  .tab-preview {
    padding: 14px;
  }
  
  .tab-preview-header {
    font-size: 10px;
    margin-bottom: 8px;
  }
  
  .tab-preview-main {
    font-size: 14px;
  }
} 