@import url('https://fonts.googleapis.com/css2?family=Outfit&family=Roboto+Condensed&family=Roboto+Mono&display=swap');

:root {
    --roboto: 'Roboto Condensed', sans-serif;
    --outfit: 'Outfit', sans-serif;
    --mono: 'Roboto Mono', monospace;
    --br: 10px;
    --curved-br: 20px;
    --card-bg: white;
    --color1: hotpink;
    --bg-1: #39375B;
    --bg-2: #EFEFF5;
    --bg-3: #FFFFFF;
    --fg-1: #FFFFFF;
    --success: green;
    --danger: red;
    --warning: orange;
    --information: blue;
}

* {
    padding: 0;
    margin: 0;
    border: none;
    box-sizing: border-box;
    font-size: 16px;
    font-family: var(--outfit);
}


body {
    overflow: hidden;
}

main {
    height: 100vh;
    width: 100vw;
    display: flex;
    background-color: var(--bg-1);
}

a {
    text-decoration: none;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

h1 {
    font-size: 1.5rem;
}

h2 {
    font-size: 1.25rem;
}

.side-bar {
    height: 100%;
    width: 50px;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-bar .items {
    display: flex;
    flex-direction: column;
}

.side-bar .items .item {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    padding: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    color: var(--bg-2);
    z-index: 20;
    position: relative;
}

.side-bar .items .item:hover {
    height: 50px;
    width: 50px;
    border-radius: var(--br);
    padding: 0.5rem;
    /*background: var(--bg-2);*/
    color: var(--bg-1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.side-bar-item .item-label {
    width: 0;
    white-space: nowrap;
    top: 0;
    left: 0;
    transition: 200ms;
    position:absolute;
    bottom: 0;
    opacity: 0;
    padding: 1rem 1rem 1rem 55px;
    display: flex;
    align-items: center;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: lightsteelblue;
    color: var(--bg-1);
    z-index: -1;
    overflow: hidden;
    text-overflow: ellipsis;
    transform: translateX(-100px);
}

.side-bar-item:hover .item-label {
    width: auto;
    opacity: 1;
    transform: translateX(0);
}

.main-content {
    height: 100%;
    width: calc(100% - 50px);
    /*margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;*/
    padding: 0.5rem;
    background-color: var(--bg-2);
}

.w-100 {
    width: 100%;
}

.h-100 {
    height: 100%;
}

.w-fixed-1 {
    width: 50px;
}

.h-fixed-1 {
    height: 50px;
}

.h-100-minus-fixed-1 {
    height: calc(100% - 50px);
}

.h-90v-minus-fixed-1 {
    max-height: calc(90vh - 50px);
}

.body-grid {
    display: grid;
    grid-gap: 0.5rem;
    grid-template-columns: auto auto auto;
    grid-template-rows: 300px 300px 300px 300px 300px 300px 300px 300px 300px 300px;
}

.g-c-1 {
    grid-column: 1;
}

.g-c-2 {
    grid-column: 2;
}

.g-c-3 {
    grid-column: 3;
}

.g-r-1 {
    grid-row: 1;
}

.g-r-2 {
    grid-row: 2;
}

.g-r-3 {
    grid-row: 3;
}

.g-c-s-1 {
    grid-column-start: 1;
}

.g-c-e-1 {
    grid-column-end: 1;
}

.g-c-s-2 {
    grid-column-start: 2;
}

.g-c-e-2 {
    grid-column-end: 2;
}

.g-c-s-3 {
    grid-column-start: 3;
}

.g-c-e-3 {
    grid-column-end: 3;
}

.g-r-s-1 {
    grid-row-start: 1;
}

.g-r-e-1 {
    grid-row-end: 1;
}

.g-r-s-2 {
    grid-row-start: 2;
}

.g-r-e-2 {
    grid-row-end: 2;
}

.g-r-s-3 {
    grid-column-start: 3;
}

.g-r-e-3 {
    grid-row-end: 3;
}

.main-content .body-grid .item {
    height: 100%;
    width: 100%;
    border-radius: var(--br);
    padding: 1rem;
    background-color: var(--card-bg);
}

/*
.input-container {
    padding-left: 1rem;
    padding-right: 1rem;
}
*/

.input-container .label {
    height: 50px;
    padding: 1rem;
}

label {
    font-weight: bold;
}


.input {
    border-radius: var(--curved-br);
    padding-left: 1rem;
    padding-right: 1rem;
    border-color: transparent;
    position: relative;
    display: flex;
    align-items: center;
    background-color: var(--bg-3);
    height: 40px;
}

.input input, .input select, .input textarea {
    height: 30px;
    width: 100%;
    position: relative;
}

.input .border {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-style: solid;
    border-width: 3px;
    border-radius: 10px;
    pointer-events: none;
    border-color: transparent;
    border-color: var(--bg-2);
}

.input span {
    height: 30px;
    width: 30px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-3);
}

.input:hover .input .border {
    border-color: lightblue;
}

.input input:focus ~ .border {
    border-color: lightblue;
}


.input select:focus ~ .border {
    border-color: lightblue;
}


.input textarea:focus ~ .border {
    border-color: lightblue;
}

.text-area {
    height: 7rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

textarea {
    height: 6rem !important;
    resize: none;
}

/* width */
::-webkit-scrollbar {
    width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
    background: transparent;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: var(--bg-2);
    border-radius: 20px;
    cursor: pointer;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--bg-1);
}

.tabs {
    height: 100%;
    width: 100%
}

.tab-list {
    display: flex;
    align-items: center;
    height: 50px;
    list-style: none;
    background-color: white;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tab-content {
    height: 100%;
    width: 100%;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    background-color: var(--bg-3);
    padding: 1rem;
    max-height: calc(100vh - 115px - 1rem);
    overflow-y: scroll;
}

/* width */
.tab-content ::-webkit-scrollbar {
    padding-right: 1rem;
    width: 10px;
}

.tab-list-item {
    height: 50px;
    padding-left: 1rem;
    padding-right: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-top: solid 3px transparent;
    border-bottom: solid 3px transparent;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.tab-list-active {
    background-color: white;
    border-bottom: solid 3px blue;
}

.btn {
    padding: 0 1rem;
    background: transparent;
    border: solid var(--bg-1);
    border-radius: var(--br);
    cursor: pointer;
    overflow: hidden;
    position: relative;
    height: 40px;
    width: 150px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/*
.btn-primary {
    border: solid var(--bg-1);
}

.btn-secondary {
    border: solid var(--bg-2);
}


.btn-success {
    border: solid 3px var(--success);
}

.btn-danger {
    border: solid 3px var(--danger);
}


.btn-warning {
    border: solid 3px var(--warning);
}


.btn-information {
    border: solid 3px var(--information);
}
*/

.btn label {
    pointer-events: none;
    transition: 200ms;
}


.btn:hover label {
    padding-left: 25px;
    pointer-events: none;
}

.btn .icon {
    height: 20px;
    width: 20px;
    opacity: 0;
    transition: 200ms;
    transform: translateX(-100px);
    position: absolute;
    margin-right: 5px;
}

.btn:hover {
    border-color: var(--bg-1);
    background-color: var(--bg-1);
    color: var(--fg-1);
}

.btn-primary:hover {
    border-color: var(--bg-1);
    background-color: var(--bg-1);
}

.btn-secondary:hover {
    border-color: var(--bg-2);
    background-color: var(--bg-2);
}

.btn-success:hover {
    border-color: var(--success);
    background-color: var(--success);
}

.btn-danger:hover {
    border-color: var(--danger);
    background-color: var(--danger);
}

.btn-warning:hover {
    border-color: var(--warning);
    background-color: var(--warning);
}

.btn-information:hover {
    border-color: var(--information);
    background-color: var(--information);
}

button:hover .icon {
    transform: translateX(0);
    opacity: 1;
}

button:active {
    opacity: 0.9;
    transition: 0s
}

.modal-container {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: -100;
}

.modal {
    max-height: 90%;
    width: 90%;
    background-color: var(--bg-3);
    border-radius: var(--br);
    transform: translateY(-100%);
    transition: 200ms;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-active {
    z-index: 100;
}

.modal-active .modal {
    transform: translateY(0);
}

.icon-btn {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--bg-3);
}

.icon-btn:hover {
    color: var(--bg-3);
}


button:hover .icon {
    transform: translateX(0);
    opacity: 1;
}

button:active {
    opacity: 0.9;
    transition: 0s
}


.modal .tabs .tab-content {
    padding: 0;
    overflow-y: scroll;
    height: calc(100% - 50px);
}

.show-edit {
    display: block;
}

.hide-edit {
    display: none;
}

small {
    font-size: 0.75rem;
    font-style: italic;
    color: lightgray;
}

/*switch*/
.cb-switch {
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.cb-switch .switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 30px;
}

.cb-switch .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cb-switch .switch span {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-2);
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 30px;
}

.cb-switch .switch span::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 3px;
    border-radius: 50%;
    background-color: white;
    -webkit-transition: .3s;
    transition: .4s;
}

.cb-switch .switch input:checked + span {
    background-color: #2196F3;
}

.cb-switch .switch input:checked + span::before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

.cb-switch .label {
    display: flex;
    width: calc(100% - 50px);
    flex-direction: column;
    justify-content: center;
    padding-left: 5px;
    font-size: 12pt;
}

/*switch*/
.switch-input {
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.switch-input .switch {
    position: relative;
    display: inline-block;
    width: 45px;
    height: 30px;
}

.switch-input .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-input .switch span {
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-2);
    -webkit-transition: .3s;
    transition: .3s;
    border-radius: 30px;
}

.switch-input .switch span::before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 3px;
    border-radius: 50%;
    background-color: white;
    -webkit-transition: .3s;
    transition: .4s;
}

.switch-input .switch input:checked + span {
    background-color: #2196F3;
}

.switch-input .switch input:checked + span::before {
    -webkit-transform: translateX(13px);
    -ms-transform: translateX(13px);
    transform: translateX(13px);
}

.switch-input .label {
    display: flex;
    width: calc(100% - 50px);
    flex-direction: column;
    justify-content: center;
    padding-left: 5px;
    font-size: 12pt;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

th {
    font-size: 0.75rem;
    text-align: left;
}

tr {
    border-radius: var(--br);
}

tr td:first-child {
    border-top-left-radius: var(--br);
    border-bottom-left-radius: var(--br);
}

tr td:last-child {
    border-top-right-radius: var(--br);
    border-bottom-right-radius: var(--br);
}

td p {
    overflow-wrap: anywhere;
}

th, td {
    padding: 1rem 0.5rem;
}

.selected-row {
    cursor: pointer;
}

.selected-row:hover {
    background-color: var(--bg-1);
    color: var(--fg-1);
}

.details-item {

}

.details-item summary {
    padding: 1rem;
    border-radius: var(--br);
    cursor: pointer;
    display: flex;
}

.details-item-body {
    padding: 1rem;
    border: 1px solid var(--bg-1);
    border-bottom-right-radius: var(--br);
    border-bottom-left-radius: var(--br);
    margin-bottom: 1rem;
}

.no-top-padding {
    padding: 0 1rem 1rem !important;
}

.details-item summary:hover {
    background-color: var(--bg-1);
    color: var(--fg-1);
}

.details-item[open] summary {
    background-color: var(--bg-1);
    color: var(--fg-1);
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/*Loading screen*/
.loading-screen {
    height: 100vh;
    width: 100vw;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
}

.loading-screen div {
    position: relative;
}

.loading-screen div .spinner {
    border: 10px solid transparent;
    border-top: 10px solid black;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.loading-screen div #spinner1 {
    height: 80px;
    width: 80px;
    animation: spin 1s linear infinite;
    margin: -55px 0 0 -55px;
}

.loading-screen div #spinner2 {
    height: 100px;
    width: 100px;
    animation: spin 1.5s linear infinite;
    margin: -65px 0 0 -65px;
}

.loading-screen div #spinner3 {
    animation: spin 2s linear infinite;
    margin: -75px 0 0 -75px;
    width: 120px;
    height: 120px;
}

.ls-show {
    opacity: 1;
    z-index: 1000; }

.ls-hide {
    opacity: 0;
    z-index: -1000; }

@keyframes spin {
    0% {
        transform: rotate(0deg); }
    100% {
        transform: rotate(360deg); } }

.calendar-header {
    width: calc(100% / 7);
    height: 50px;
}

.calendar-day {
    width: calc(100% / 7);
    height: 100px;
    cursor: pointer;
}

.calendar-day:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.calendar-day-header {
    height: 20px;
    display: flex;
    justify-content: space-between;
}

.calendar-day:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.calendar-day-channel {
    height: 16px;
    width: 100%;
}

.calendar-item {
    width: 100%;
    height: 100%;
}