@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css");

:root {
  --vangogh-primary: #fdc608;
  --picasso-primary: #e74b38;
  --monet-primary: #6bcdb2;
  --paris-primary: #619aff;
}

body {
  font-size: .875rem;
}

a, a:hover {
  text-decoration: none;
}

/* fix bootstrap */
.input-group .input-group-text {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-right:-1px;
}

/*
 * Sidebar
 */

.sidebar {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100; /* Behind the navbar */
  padding: 48px 0 0; /* Height of navbar */
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar-sticky {
  position: relative;
  top: 0;
  height: calc(100vh - 48px);
  padding-top: .5rem;
  overflow-x: hidden;
  overflow-y: auto; /* Scrollable contents if viewport is shorter than content. */
}

@supports ((position: -webkit-sticky) or (position: sticky)) {
  .sidebar-sticky {
    position: -webkit-sticky;
    position: sticky;
  }
}

.sidebar .nav-link {
  font-weight: 500;
  color: #333;
}

.sidebar .nav-link .feather {
  margin-right: 4px;
  color: #999;
}

.sidebar .nav-link.active {
  color: #007bff;
  background-color: white;
}

.sidebar .nav-link:hover .feather,
.sidebar .nav-link.active .feather {
  color: inherit;
}

.sidebar-heading {
  font-size: .75rem;
  text-transform: uppercase;
}

/*
 * Content
 */

[role="main"] {
  padding-top: 48px; /* Space for fixed navbar */
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .25);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);
}

.navbar .form-control {
  padding: .75rem 1rem;
  border-width: 0;
  border-radius: 0;
}

.form-control-dark {
  color: #fff;
  background-color: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .1);
}

.form-control-dark:focus {
  border-color: transparent;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25);
}

#username {
  color: white;
}


/********
* LOGIN *
********/

#login-form {
  height: 95vh;
}

#login-form input {
  color: #333333;
}

/*********
* Shared *
*********/

.page-title {
  margin-top: 2em;
  margin-bottom: 2em;
}

.page-title h2 {
  font-size: 2.5rem;
  font-weight: 100;
}

.subnav {
  border-top: solid 2px #ccc;
  border-bottom : solid 2px #ccc;
}

.tag-holder {
  line-height: 2em;
}

.tag {
  padding: .2em .3em;
  border-radius: .2em;
  white-space: nowrap;
}

.tag.tag-home {
  margin-right: .5em;
}

.tag.tag-home:hover {
  box-shadow: 0 0 .1em .1em rgba(0,128,255,0.5);
}
/*************
*  Dashboard *
*************/

.key-figure {
  font-weight: 700;
  font-size: 3em;
}

#map {
  height: 360px;
  border-radius: 5px;
}

#exhibits-chart .cursor {
  stroke:red;
  stroke-width:2;
}

#exhibits-chart .division line {
  stroke-width: 1;
  stroke: #888;
}

#exhibits-chart .division.January line {
  stroke-width: 3;
  stroke: #000;
}

#exhibits-chart .division rect {
  fill: #f4f4f4;
}

#exhibits-chart .division.January rect,
#exhibits-chart .division.February rect,
#exhibits-chart .division.March rect,
#exhibits-chart .division.July rect,
#exhibits-chart .division.August rect,
#exhibits-chart .division.September rect {
  fill: #fff;
}

#exhibits-chart .division text {
  fill: #888;
  font-size: smaller;
}

#exhibits-chart .event rect {
  fill: #888;
}

#exhibits-chart .event.imaginevangogh rect {
  fill: var(--vangogh-primary);
}

#exhibits-chart .event.imaginemonet rect {
  fill: var(--picasso-primary);
}

#exhibits-chart .event.imaginepicasso rect {
  fill: var(--monet-primary);
}


/************
* Licences *
***********/
.licence-card {
  height: 10em;
  background-size: cover;
  background-position: center center;
  position:  relative;
  font-size: 200%;
  border-radius: 4px;
}

a .licence-card {
  color: white;
}

.licence-card div {
  text-align: center;
  width: 100%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(0, -50%);
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0.5;
  transition: opacity 0.25s ease-in-out;
}

a:hover .licence-card div {
  opacity: 1;
}

#exhibits-chart {
  display: block;
  width: 100%;
}

.badge-in-pill {
  background-color: white;
  color: black;
  border-radius: 2px;
  /*display: inline-block;*/
  padding-left: 0.2em;
  padding-right: 0.2em;
}

/**********************
* Licence Website Tab *
**********************/

legend select {
  border:none;
}

/*************
* Exhibition *
*************/

#exhibition-preview .key-figure {
  font-size: 1.5em;
}

/************
 * Timeline *
 ***********/

/* https://coolors.co/04e762-f5b700-00a1e4-dc0073-89fc00 */

#exhibition-timeline .division line {
  stroke-width: 1;
  stroke: #888;
}

#exhibition-timeline .division.January line {
  stroke-width: 3;
  stroke: #000;
}

#exhibition-timeline .division rect {
  fill: #fff;
}

#exhibition-timeline .division.January rect,
#exhibition-timeline .division.March rect,
#exhibition-timeline .division.May rect,
#exhibition-timeline .division.July rect,
#exhibition-timeline .division.September rect,
#exhibition-timeline .division.November rect{
  fill: #f8f8f8;
}


#exhibition-timeline .division text {
  fill: #888;
  font-size: smaller;
}

#exhibition-timeline .report-line {
  fill: none;
  stroke: #00a1e4;
}

#exhibition-timeline .report-dot {
  fill: #00a1e4;
}

#exhibition-timeline .estimate-line {
  fill: none;
  stroke: #dc0073;
}

#exhibition-timeline .estimate-dot {
  fill: white;
  stroke: #dc0073;
  stroke-width: 2px;
}


/************
 * Calendar *
 ***********/
table.table.month-calendar th {
  border-top: none;
}

th.week-number {
  border: none;
  text-align: right;
}

td.current-month {
  background-color: #f4f4f4;
}

td.open.current-month {
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

td.in-range {
  padding: 0;
}

.table.month-calendar a {
  display: block;
  padding: .75rem; /* Bootstrap default for <td> */
}

.table.month-calendar a:hover {
  background-color: #007bff;
  color: white;
}
/****************
 * File Manager *
 ***************/
#file-manager a {
  display: block;
}

#file-manager figure {
  background-color: #eee;
}

.file-preview {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

/******************
 * User & Profile *
 *****************/

.avatar-editor img, .avatar-editor svg {
  border-radius:50%;
  border: solid 1px #007bff;
  max-width: 100%;
}

#no-avatar {
  background-color: #f8f8f8;
}

a.avatar-editor:hover svg, a.avatar-editor:hover img {
  border-width: 2px;
}

.user-list {
  width: 25px;
  height: 25px;
}

/*********
 * Asset *
 ********/

.assetImage {
  width: 100%;
  object-fit: cover;
}

/*************
 * Bookmarks *
 ************/
.bookmark {
  position: relative;
  background-color: ;
  border-top: solid thin gray;
  border-bottom: solid thin gray;
  margin-top: -1px;
/*  border-radius: 3px;*/
/*  margin-bottom:.5em;*/
  padding:0.375rem 0.75rem;
}

.bookmark .edit-actions {
  position: absolute;
  right: 0;
  top: 0;
  padding-top: 0.375rem;
}

.session-list details[open] {
  background-color: #fff3cd;
  border-radius: 0.25rem;
  border: solid 1px #ffeeba;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.session-list details:nth-child(odd) summary {
  background-color: #eee;
}

.session-list details[open] summary {
  background-color: #fff3cd;
}

.session-list summary {
  line-height: 3em;
}

.session-list summary span {
  display: inline-block;
}

.session-list summary span.session-location,
.session-list summary span.session-pages,
.session-list summary span.session-first-date {
  width: 20%;
}

.session-list table {
  background-color: #fff;
}

.session-list td:first-of-type {
  width:20%;
}

/* Filebox */
.filepicker {
  position: relative;
  display: block;
  background-color: #ced4da;
  padding: 0.25rem;
  height: calc(2 * (1.5em + .75rem + 2px)); /* bootstrap input height * 2 */
  border-radius: .25rem;
  cursor: pointer;
}

.filepicker img {
  height: 100%;
}

.filepicker figcaption, .filepicker input {
  display: inline;
}

.filepicker-edit-icon {
  position:absolute;
  line-height: calc(2 * (1.5em + .75rem + 2px)); /* bootstrap input height * 2 */
  height: calc(2 * (1.5em + .75rem + 2px)); /* bootstrap input height * 2 */
  right: 0;
  top: 0;
  width: 2em;
  text-align: center;
}
