* {
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

:root {
  --sidebar-width: 250px;
  --header-height: 54px;
  --theme-color: #1abc9c;
}

header {
  background: var(--theme-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  margin-bottom: 20px;
  width: 100%;
  color: white;
  font-weight: bold;
  font-size: 28px;
}

body {
  font-family: Helvetica, serif;
  -webkit-font-smoothing: antialiased;
}

.title {
  text-align: center;
  color: #8C55AA;
  font-weight: bold;
  font-size: 24px;
}

.email {
  text-align: right;
  color: #324960;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  bottom: 0;
  width: 100%;
  text-align: right;
  white-space: nowrap;
  line-height: 60px;
}

/* Loading */
#loading-mask {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 1.5em;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 8px solid rgba(255, 255, 255, 0.3);
  border-top: 8px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

  100% {
    transform: rotate(360deg);
  }
}

/* Sidebar */
#sidebar {
  min-height: 100vh;
  width: var(--sidebar-width);
  position: fixed;
  top: 0;
  left: 0;
  transition: left 0.3s ease-in-out;
  z-index: 1;
  background: white;
  border-right: 1px solid rgba(0, 0, 0, .125);
}

.sidebar-header {
  background: var(--theme-color);
  padding: 15px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 54px;
}

#sidebar.collapsed {
  left: calc(var(--sidebar-width) * -1);
}

.sidebar-toggle {
  background: transparent;
  border: none;
  color: white;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:hover {
  opacity: 0.8;
}

.sidebar-toggle.collapsed {
  position: fixed;
  left: 0;
  top: 0;
  background: var(--theme-color);
  padding: 15px;
  height: var(--header-height);
  width: 50px;
  z-index: 2;
}

.nav-link {
  color: #8C55AA !important;
  padding: 8px 15px;
}

.nav-link:hover {
  background: rgba(140, 85, 170, 0.1);
}

.nav-link.active {
  background: rgba(140, 85, 170, 0.2);
}

.service-title {
  color: #1abc9c;
  font-weight: bold;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  margin-bottom: 5px;
}

.sub-menu {
  padding-left: 20px;
}

/* Main Page */
#content {
  transition: margin-left 0.3s ease-in-out;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#content main {
  flex: 1;
  min-height: 100vh;
  padding: 20px;
}