:root {
  --codey-blue: #1A73E8;
  /* Primary blue from the logo */
  --codey-dark-blue: #0F4C81;
  /* Dark blue for accents */
  --codey-light-blue: #4FC3F7;
  /* Light blue for highlights */
  --codey-teal: #00ACC1;
  /* Teal from the ninja band */
  --codey-black: #212121;
  /* Black for text and dark elements */
  --codey-white: #FFFFFF;
  /* White for backgrounds */
  --codey-gray: #B0BEC5;
  /* Gray for secondary text or borders */

  --header-height: 60px;
  --footer-height: 40px;
  --sidebar-width: 250px;
  --content-padding: 20px;

  --box-shadow: -5px 0px 10px 5px #000;
  --border-radius: 4px;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;

  font-family: Arial, sans-serif;
}

.header {
  height: var(--header-height);
  background-color: var(--codey-dark-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
  position: relative;
}

.body {
  display: flex;
  flex-direction: row;
  height: calc(100% - var(--header-height) - var(--footer-height));
  overflow: hidden
}

  .body > .sidebar {
    width: var(--sidebar-width);
    background-color: var(--codey-white);
    color: var(--codey-black);
    padding: var(--content-padding);
    overflow-y: auto;
    box-shadow: var(--box-shadow);
    z-index: 2000;
    overflow: auto;
  }

    .body ul.sidebar-menu {
      list-style: none;
      padding: 0;
      margin: 0;
    }
      .body > .sidebar a {
        color: var(--codey-black);
        text-decoration: none;
        padding: 10px;
        display: block;
        text-align: left;
        border-left: 3px solid transparent;
        cursor: pointer;

        &:hover {
          border-left-color: var(--codey-teal);
        }
        &:active {
          box-shadow: none;
          -webkit-box-shadow: none;
        }

        .action-label { 
          cursor: pointer;
        }
      }

      .body>.sidebar .sidebar-menu a[data-start-selected] {
        border-left-color: var(--codey-teal);
        font-weight: bold;
      }

      .body>.sidebar .sidebar-menu a:hover {
        border-left-color: var(--codey-teal);
      }

  .body > .content {
    flex: 1;
    background-color: var(--codey-white);
    color: var(--codey-black);
    padding: var(--content-padding);
    z-index: 1000;
    overflow: auto;
  }

.footer {
  height: var(--footer-height);
  background-color: var(--codey-black);
  color: var(--codey-white);
  display: flex;
  align-items: center;
  justify-content: center;
}

.inline-select {
  display: inline-block;
  vertical-align: middle;
}

.flex {
  display: flex;
}

.flex.flex-row {
  flex-direction: row;

  .form-group {
    margin-bottom: 0px;
  }
}

.flex.flex-column {
  flex-direction: column;
}

.flex.align-start {
  align-items: flex-start;
}
.flex.space {
  justify-content: space-around;
}

.flex.space-between {
  justify-content: space-between;
}

.flex.center {
  justify-content: center;
}

.flex.align-center {
  align-items: center;
}

.flex.align-start {
  align-items: flex-start;
}

.flex.align-end {
  align-items: flex-end;
}

.flex-grow {
  flex-grow: 1;
}
.flex-wrap {
  flex-wrap: wrap;
}

.flex-col-100 {
  width: 100px;
}

.bold {
  font-weight: bold;
}

.padding-10 {
  padding: 10px;
}

.padding-5 {
  padding: 5px;
}

.padding-2 {
  padding: 2px;
}

.padding-1 {
  padding: 1px;
}

.padding-0 {
  padding: 0;
}

.bg-white {
  background-color: var(--codey-white);
}

.bg-gray {
  background-color: var(--codey-gray);
}

.bg-blue {
  background-color: var(--codey-blue);
}

.bg-dark-blue {
  background-color: var(--codey-dark-blue);
}

.bg-light-blue {
  background-color: var(--codey-light-blue);
}

.full-height {
  height: 100%;
}

.full-width {
  width: 100%;
}

.no-progress .progress {
  display: none;
}

.shiny-notification {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.dataTables_wrapper {
  overflow: auto;
}

/* Form styles */
input[type="checkbox"]:checked {
  accent-color: var(--codey-dark-blue);
}

.header {
  position: relative;

  & .save {
    position: absolute;
    right: 10px;
    top: 10px;
  }
}

#mainBody {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  flex-direction: row;
  --options-width: 200px;
  --border-width: 1px;
  --border-color: #ccc;
  --gutter-width: 10px;
  --background-color: #f9f9f9;
}
  #mainBody h2 {
    width: 100%;
    margin: 0 0 var(--gutter-width) 0;
    height: 1em;
  }
  #mainBody > div {
    height: calc(100% - 1em - var(--gutter-width));
  }


#mainBody .row {
  flex: 1;
}
  #mainBody .row .box-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  #mainBody .row .options {
    width: var(--options-width);
  }
  #mainBody .row .content {
    flex: 1;
  }

#mainBody [class$='-options']:not(.selectize-input) {
  width: var(--options-width);
  height: calc(100% - 3em - var(--gutter-width));
  border: var(--border-width) solid var(--border-color);
  padding: var(--gutter-width);
  background-color: var(--background-color);
  display: flex;
  flex-direction: column;
  margin-right: var(--gutter-width);
  flex-shrink: 0;
}
  #mainBody [class$='-options'] button,
  #mainBody [class$='-options'] a.btn {
    width: 100%;
    margin-bottom: var(--gutter-width);
  }

  #mainBody [class$='-options'] hr {
    width: 100%;
    display: block;
    height: 1em;
  }

#mainBody [class*=-main] {
  flex: 1;
  border: var(--border-width) solid var(--border-color);
  padding: var(--gutter-width);
  margin-left: var(--gutter-width);
  /* background-color: var(--codey-white); */
  height: calc(100% - 3em - var(--gutter-width));
  overflow: auto;
}

#sideBody { 
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

#shiny-modal-wrapper {
  /* z-index: 1000 !important; */
  
  .modal { 
    z-index: 10001 !important;
  }
}