body {
  font-family: Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  padding: 0;
}

#container {
  background-color: #fff;
  border-style: dashed;
  border-color: black;
  border-width: thin;
  margin-top: 10vh;
  margin-left: 10vh;
  height: 70vh;
  width: 70vw;
}

#appBuilderContainer {
  max-width: 900px;
  min-height: calc(100vh - 20em);
  margin: 60px auto;
  text-align: center;
  background: white;
  padding: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.appBuilderTitle {
  font-size: 2.5em;
  color: #004080;
  font-weight: 600;
}

.appBuilderSubtitle {
  font-size: 2em;
  color: #004080;
  margin-bottom: 25px;
}

.appBuilderSubsubtitle {
  font-size: 1.2em;
  color: #666;
  margin-bottom: 25px;
}

#configPopUpBox {
  display: none;
  position: fixed;
  left: 20vw;
  top: 25vh;
  width: 60vw;
  border: solid;
  border-radius: 10px;
  z-index: 10;
  background-color: #fff;
}

.item {
  height: 100px;
  width: 100px;
  position: absolute;
  background: grey;
  cursor: grab;
  z-index: 6;
}

.newElements {
  height: 100px;
  width: 100px;
  cursor: grab;
}

.newElementsContainer {
  height: 140px;
  width: 100px;
  margin-bottom: 20px;
}

.newElementsText {
  text-align: center;
}

#tableElement {
  left: 40px;
  top: 150px;
  background-color: orange;
}

#newButtonElement {
  left: 180px;
  top: 150px;
  background-color: green;
}

.resizer {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 10px;
  background-color: blue;
  z-index: 7;
  display: none;
}

.resizer.nw {
  top: -10px;
  left: -10px;
  cursor: nw-resize;
}

.resizer.ne {
  top: -10px;
  right: -10px;
  cursor: ne-resize;
}

.resizer.sw {
  bottom: -10px;
  left: -10px;
  cursor: sw-resize;
}

.resizer.se {
  bottom: -10px;
  right: -10px;
  cursor: se-resize;
}

#inAppHeader {
  height: 10vh;
  width: 70vw;
  background-color: lightgray;
  margin-left: 0;
  margin-top: 0;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

#editorHeader {
  width: 100vw;
  height: 12vh;
  background-color: white;
  top: 0;
  border-bottom-style: solid;
  border-width: 1px;
  border-color: black;
}

#menuButton {
  width: 5vh;
  height: 5vh;
  position: absolute;
  margin-top: 1vh;
  margin-left: 1vh;
  z-index: 8;
  cursor: grab;
}

.menuButtonLines {
  width: 70%;
  height: 10%;
  border-radius: 5px;
  background-color: black;
  margin-left: auto;
  margin-right: auto;
  margin-top: 20%;
}

#leftMenu {
  position: absolute;
  visibility: hidden;
  height: 88vh;
  width: 20vw;
  margin-left: 0;
  margin-top: 0;
  padding-top: 10vh;
  padding-left: 1vh;
  background-color: white;
  border-right-style: solid;
  border-right-width: 1px;
  border-right-color: black;
  z-index: 7;
  overflow-y: auto;
}

.rightMenu {
  position: absolute;
  height: 79vh;
  width: 260px;
  right: 0;
  margin-top: 5vh;
  background-color: white;
  border-left-style: solid;
  border-top-style: solid;
  border-bottom-style: solid;
  border-width: 1px;
  border-color: black;
  border-radius: 15px 0px 0px 15px;
  z-index: 5;
  overflow-y: auto;
}

#rightMenuButtonsContainer {
  width: 60%;
  height: 40px;
  border: solid;
  border-radius: 20px;
  margin: 10px auto 40px auto;
}

#rightMenuNewElements {
  width: 220px;
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 20px;
  margin: auto;
  overflow-y: scroll;
}

#rightMenuEditElements {
  width: 100%;
  display: none;
}

.rightMenuTopButtonLeft {
  float: left;
  margin-left: 10px;
  background-color: inherit;
  border: 0;
}

.rightMenuTopButtonRight {
  float: right;
  margin-right: 10px;
  background-color: inherit;
  border: 0;
}

ul {
  list-style-type: none;
}

h3 {
  padding-top: 4vh;
}

table {
  margin: auto;
  border-collapse: collapse;
}

th, td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
}

th {
  background-color: #f4f4f4;
}

.fixed-row {
  background-color: #d3d3d3;
}

.add-row-btn {
  cursor: pointer;
  font-size: 20px;
  text-align: center;
  padding: 5px;
  border: 1px solid #ddd;
  background-color: #fff;
}

.button {
  padding: 10px 20px;
  font-size: 1.2em;
  border: none;
  border-radius: 5px;
  background-color: #004080;
  color: white;
  cursor: pointer;
  margin-top: 10px;
  margin-left: 20px;
  margin-right: 20px;
}

.button:hover {
  background-color: #003060;
}

.status {
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 10px;
}

.status-header {
  background: #f0f0f0;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.status-content {
  display: none;
  padding: 10px;
}

.actionsTitle {
  float: left;
}

.permissionsTitle {
  float: right;
}

.action {
  margin-left: 20px;
}

.action > input {
}

.action > label {
}

.actionContainer {
  float: left;
}

.departments {
  display: none;
  float: right;
}

.select-all {
  font-weight: bold;
  margin-right: 10px;
}

.drag-hover {
  background-color: #e0f7fa !important;
  outline: 2px dashed #00acc1;
}

.drag-source {
  background-color: #fff3e0 !important;
  opacity: 0.8;
}

.deleteActionButton {
  color: red;
  background-color: inherit;
  border: 0;
  cursor: pointer;
}

.database-sidebar {
  width: 20vw;
  max-width: 270px;
  min-width: 150px;
  background-color: #f9fafc;
  padding: 20px 20px;
  box-sizing: border-box;
  border: 0;
  height: calc(100vh - 15vh - 7vh - 15vh);
  overflow-y: auto;
  position: fixed;
  top: 22vh;
  left: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 100px;
}

.database-sidebar-inner {
  width: 100%;
  max-height: 90%; /* ensures it never overflows the sidebar */
  overflow-y: auto;
  text-align: left;
  padding: 10px 0;
}

.sidebar-title {
  font-size: 1.1rem;
  color: rgb(60,129,207);
  font-weight: 600;
  margin-bottom: 12px;
  padding-left: 10px;
}

.database-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.database-item {
  padding: 10px 14px;
  margin: 4px 0;
  border-radius: 6px;
  cursor: pointer;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
}

.database-item:hover {
  background-color: rgba(60,129,207, 0.1);
  color: rgb(60,129,207);
}

.database-item.active {
  background-color: rgb(60,129,207);
  color: white;
}

@media screen and (max-width: 600px) {
  .database-sidebar {
    height: calc(100vh - 15vh - 14vh - 15vh);
    top: calc(15vh + 14vh);
  }
}
