  .control-panel {
    position: sticky;
    top: 0px;
    width: 30%;
    background: #fbfbfb;
    font-size: 13px;
    height: 100%;
    float: inline-start;
    display: none;
  }

  .Section {
    margin-top: auto;
    margin-bottom: auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .section-item {
    font-size: xx-large;
    padding: 10px;
    cursor: pointer;
  }

  #ImageEditor {
    /*width: 250px;
    height: 100vh;*/
    width: 100%;
    height: 100%;
    background: #f9fafb;
    border-left: 1px solid #e5e7eb;
    box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
    font-family: sans-serif;
    overflow-y: auto;
  }

  #ImageEditor > * {
    margin-right: 16px;
    margin-left: 16px;
  }

  
  .sidebar-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #111827;
  }

  #ImageEditor label {
    color: #374151;
  }
  #ImageEditor input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

#ImageEditor input[type="range"] {
  width: 90%;
}

#Upload {
  width: 100%;
  height: 100%;
  background: #f9fafb;
  border-left: 1px solid #e5e7eb;
  padding: 16px;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  overflow-y: auto;
}

#Upload > * {
  margin-right: 16px;
  margin-left: 16px;
}

#Upload label {
  font-size: 0.9rem;
  color: #374151;
  display: block;
  margin: 12px 0 4px;
}

#FileExployer {
  margin-top: 20px;
  display: flex;
  border-color:#cecece;
  border-radius: 5px;
}

.FileExpColumns {
  flex: 1;
  margin: 10px;
  max-width: calc(50% - 20px);
}

.FileExpItemDiv {
  cursor: pointer;
  width: 100%;
  background-color: #e0e0e0;
  margin-bottom: 10px;
  overflow: hidden;
  text-align: center;
}

.FileExpItemDiv i {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 100%;     /* base */
  
  /* Use flexbox for centering */
  display: flex;
  align-items: center;
  justify-content: center;
  
  font-size: 8vw;     /* scale relative to viewport width TODO Make this actually dinamic so it works with all screens*/ 
}

.FileExpItemDiv h3 {
  margin-top: 0px;
}

#PageEdit {
  /*width: 250px;
  height: 100vh;*/
  width: 100%;
  height: 100%;
  background: #f9fafb;
  border-left: 1px solid #e5e7eb;
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.1);
  font-family: sans-serif;
  overflow-y: auto;
}

#PageEdit > * {
  margin-right: 16px;
  margin-left: 16px;
}

#PageEdit label {
  color: #374151;
}
#PageEdit input[type="text"] {
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
}

#PageEdit input[type="range"] {
  width: 90%;
}


.progress-wrapper {
  margin-top: 16px;
}

.progress-bar {
  width: 100%;
  height: 10px;
  background: #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  margin-top: 6px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: #3b82f6;
  transition: width 0.3s ease;
}

#progressText {
  font-size: 0.85rem;
  margin-left: 4px;
  color: #374151;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin: 6px 0;
}

.authLink {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin: 6px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85%;
}

.button-group {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  max-width: 90%;
}

.btn {
  flex: 1;
  padding: 8px;
  border: none;
  border-radius: 6px;
  background: #e5e7eb;
  color: #111827;
  cursor: pointer;
  transition: background 0.2s;
}

.btn:hover {
  background: #d1d5db;
}

.btn-green {
  background: #10b981;
  color: white;
}

.btn-green:hover {
  background: #059669;
}

.btn-red {
  background: #ef4444;
  color: white;
}

.btn-red:hover {
  background: #dc2626;
}

.btn-blue {
  background: #3b82f6;
  color: white;
}

.btn-blue:hover {
  background: #2563eb;
}