body {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    background: #f7f8fc;
}

html {
    height: -webkit-fill-available;
}

a.brandlytics {
    color: #665e8a;
    text-decoration: none;
}

a.brandlytics:hover {
    text-decoration: underline;
}

.container {
    max-width: 100%;
}

.filepond--file {
    background-color: black;
}

.alert {
  z-index: 9999;
  text-align: center;
  max-width: 600px;
  position: fixed;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.card-body .alert {
    position: inherit;
    max-width: 100%;
    text-align: left;
}

main {
    display: flex;
    flex-wrap: nowrap;
    height: 100vh;
    height: -webkit-fill-available;
    max-height: 100vh;
    overflow-x: auto;
    overflow-y: hidden;
}

#invitations h2 {
    font-size: 1.6em;
}

#invitations input {
    max-width: 400px;
}

.green {
    color: #16c60c;
}

.orange {
    color: orange;
}

#sidebar {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    height: 100%;
}

#sidebar .overflow-scroll {
    padding-bottom: 80px;
}

#sidebar .overflow-scroll::-webkit-scrollbar {
    width: 10px;
}

#sidebar div.local {
    background-image: url("img/test.png");
    background-repeat: repeat;
    background-size: 40%;
}

#sidebar div.staging {
    background-image: url("img/staging.png");
    background-repeat: repeat;
    background-size: 40%;
}

#sidebar .btn:hover,
#sidebar .btn:focus,
#sidebar .nav-link:hover,
#sidebar .nav-link:focus,
#sidebar .btn-toggle:hover,
#sidebar .btn-toggle:focus {
    background: #555;
}

#top-bar {
    top: 0;
    right: 0;
    position: fixed;
    z-index: 1000 !important;
    background: #f7f8fc;
}

#top-bar a#channel-dropdown-list,
#top-bar a#user-dropdown-list {
    color: #444;
}

#top-bar h1 {
    /*max-width: 450px;*/
    color: #665e8a;
    font-size: 1.8em;
}

#channel-dropdown {
    max-width: 700px;
}

.dropdown-item:active {
    background-color: #665e8a !important;
}

#user-dropdown {
    max-width: 200px;
    border-left: 1px solid #dfe0eb;
}

#page-content {
    right: 0;
    top: 128px;
    position: absolute;
}

#search {
    max-width: 250px;
}

#create-test-sidebar .nav-link {
    background: transparent;
    color: #665e8a;
    margin-bottom: 5px;
}

#create-test-sidebar .nav-link.active,
.btn-brandlytics {
    background: #665e8a;
    color: #fff;
}

.btn-outline-brandlytics {
    color: #665e8a;
    border-color: #665e8a;
}

.btn-outline-brandlytics:hover, .btn-outline-brandlytics:active {
    background-color: #665e8a;
    color: #fff;
}

code {
    color: inherit;
}

#create-test-sidebar .nav-link:hover,
#create-test-sidebar .nav-link:focus,
.btn-brandlytics:hover,
.btn-brandlytics:focus,
.btn-back:hover,
.btn-back:focus {
    background-color: #777 !important;
    color: #fff !important;
}

.bl-table-thead {
    background-color: #665e8a;
    color: white;
}

.box-inner {
    background-color: rgb(255, 255, 255);
    color: rgba(0, 0, 0, 0.87);
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    overflow: hidden;
    padding: 15px;
    padding-right: 50px;
    margin-top: 3px;
    margin-bottom: 30px;
    text-align: right;
    min-height: 170px;
}

.report {
    position: relative;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-top: 15px;
    padding: 20px;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.report .report-number {
    position: absolute;
    left: 0;
    top: 0;
    background: #665e8a;
    color: #fff;
    padding: 10px;
    width: 60px;
    text-align: center;
    border-top-left-radius: 10px;
}

.report a.main-video-title {
    margin-left: 80px;
}

.report img {
    max-height: 180px;
    width: 320px;
}

.report.thumbnail-test .winner img {
    border: 4px solid #16c60c;
}

.report.title-test .winner .video-title {
    color: #16c60c;
}

.report.title-test .winner .video-title b {
    color: rgba(0, 0, 0, 0.54);
}

.report .winner .test-box {
    position: relative;
}

.report .winner .test-box::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: "\f091";
    font-size: 35px;
    color: #16c60c;
    position: absolute;
    bottom: 35px;
    right: 15px;
}

.report-inner ul {
    margin-top: 20px;
    margin-left: 15px;
    margin-bottom: 0;
    padding-bottom: 0;
    padding-left: 0;
    list-style-type: none;
    color: rgba(0, 0, 0, 0.54);
    font-size: 0.9em;
}

.report-inner > div {
    padding-bottom: 25px;
}

.report-inner span.days-ran {
    color: #fff;
    float: right;
    margin-top: -35px;
    padding-right: 18px;
    padding-left: 12px;
    background: #665e8a;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.report-inner p {
    margin-top: 20px;
    margin-left: 15px;
    margin-bottom: 0;
    padding-right: 15px;
    color: rgba(0, 0, 0, 0.54);
    font-size: 0.9em;
}

.report-inner b {
    margin-right: 5px;
}

.report span, .history h5 span {
    color: #665e8a;
}

.report h2 {
    font-size: 1.3em;
    color: #665e8a;
    display: inline-block;
}

.report h3 {
    font-size: 1.4em;
    font-weight: normal;
    margin-top: 15px;
    margin-left: 15px;
}

.test-details p {
    margin-bottom: 2px;
}

.report .report-inner .test-box {
    color: rgba(0, 0, 0, 0.87);
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    background-color: #fff;
    width: 319px;
    min-height: 260px;
    border-radius: 12px;
    margin-left: 30px;
}

.report .report-inner .test-box img {
    border-top-right-radius: 12px;
    border-top-left-radius: 12px;
}

.report button.end-test {
    background: transparent;
    border: 0;
    text-decoration: none;
}

.report button.end-test:hover {
    text-decoration: underline;
}

.box-inner h2 {
    font-weight: normal;
    font-size: 1.5em;
    padding: 8px 0px;
    color: rgb(55, 58, 71);
}

.box-inner p {
    margin-bottom: 0.2em;
    color: rgb(159, 162, 180);
}

.create-test-page h2 {
    font-size: 1.6em;
    letter-spacing: 0.3px;
}

.create-test-page h3 {
    font-size: 1.6em;
}

.create-test-page h4 {
    font-size: 1.5em;
}

.create-test-page a.video-link {
    display: table;
    margin-bottom: 10px;
    text-decoration: none;
}

.create-test-page .fa-link {
    color: #665e8a;
}

.livewire-test-recommendation-wrap {
    font-size: 0.95em;
    padding-bottom: 9px;
}

.create-test-page a.thumbnail {
    display: inline-block;
    position: relative;
    color: #fff;
}

.create-test-page a.thumbnail img {
    max-width: 100%;
}

ul.create-test {
    list-style-type: none;
    max-width: 285px;
    padding-left: 0;
    margin: 15px 0 35px 0;
}

ul.create-test li {
    margin-bottom: 10px;
}

ul.create-test > li:first-child {
    font-size: 0.9em;
}

.recommendation-tooltip {
    background: #665e8a;
    position: relative;
    padding: 10px;
    border-radius: 4px;
    text-shadow: 1px 1px 1px #666;
    font-weight: bold;
    left: 20px;
    color: #fff;
}

.recommendation-tooltip::before {
    content: "";
    position: absolute;
    border-style: solid;
    border-width: 10px;
    border-color: transparent #665e8a transparent transparent;
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
}

a.logo {
    background: #f7f8fc;
}

body .bg-dark {
    background-color: #373a47 !important;
}

.b-example-divider {
    flex-shrink: 0;
    width: 1.5rem;
    height: 100vh;
    background-color: rgba(0, 0, 0, .1);
    border: solid rgba(0, 0, 0, .15);
    border-width: 1px 0;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, .1), inset 0 .125em .5em rgba(0, 0, 0, .15);
}

#thumbnail-input {
    max-width: 320px;
}

#alt-title-display {
    width: 450px;
    background: #444;
    color: #fff;
    padding: 10px;
}

.ai-generated-titles {
    max-width: 90%;
}

.ai-generated-titles .list-group li {
    background: #665e8a;
    color: #fff;
    margin-bottom: 10px;
    border-radius: 6px;
    padding: 5px 15px 5px 15px;
}

.ai-generated-titles .list-group li:hover {
    background: #666;
    transition: 0.5s;
}

table {
    background-color: rgb(255, 255, 255);
    color: rgba(0, 0, 0, 0.87);
    transition: box-shadow 300ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
    border-radius: 4px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 1px -1px, rgba(0, 0, 0, 0.14) 0px 1px 1px 0px, rgba(0, 0, 0, 0.12) 0px 1px 3px 0px;
    font-size: 0.9em;
}

table .green {
    color: #16c60c;
    font-weight: bold;
}

table .green img {
    border: 4px solid #16c60c;
}

.datepicker table th {
    font-weight: bold;
    text-align: center;
}

.datepicker-days table {
    box-shadow: none;
}

.datepicker-days tr {
    text-align: center;
}

.datepicker-days .active.day {
    color: #fff;
    background: #665e8a;
}

.datepicker table th.next.disabled {
    display: none;
}

.datepicker table th.prev,
.datepicker table th.next,
.datepicker table .day {
    cursor: pointer;
}

.datepicker table .disabled.day,
.datepicker-switch {
    cursor: default;
}

table th {
    font-weight: normal;
    padding: 20px !important;
    vertical-align: middle;
}

table td {
    vertical-align: middle;
}

table td li {
    list-style-type: none;
}

.table > :not(:first-child) {
    border-top: 0;
}

.dropdown-toggle {
    outline: 0;
}

a#channel-url {
    display: inline-block;
    color: #333;
    text-decoration: none;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: .25rem;
}

a#channel-url i {
    color: red;
    font-size: 20px;
    position: relative;
    top: 1.5px;
}

a#channel-url:hover {
    color: #fff;
    background: #665e8a;
    transition: 0.2s;
}

a#channel-url:hover i {
    color: #fff;
    transition: 0.2s;
}

.scrollable-dropdown {
    max-height: 438px;
    overflow-y: auto;
}

.nav-flush .nav-link {
    border-radius: 0;
}


.btn-toggle {
    display: inline-flex;
    align-items: center;
    padding: .25rem .5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, .65);
    background-color: transparent;
    border: 0;
}

a.btn:hover,
a.btn:focus,
.nav-link:hover,
.nav-link:focus,
.btn-toggle:hover,
.btn-toggle:focus {
    color: rgba(0, 0, 0, .85);
    background-color: #444;
}

#high-priority-videos .nav-tabs .nav-link,
#performing-well-videos .nav-tabs .nav-link,
#reports-tab .nav-link {
    color: #495057;
}

#high-priority-videos .nav-tabs .nav-link:hover,
#high-priority-videos .nav-tabs .nav-link:focus,
#performing-well-videos .nav-tabs .nav-link:hover,
#performing-well-videos .nav-tabs .nav-link:focus,
#reports-tab .nav-link:hover,
#reports-tab .nav-link:focus {
    background: transparent;
    border-top-color: #f7f8fc;
    border-left-color: #f7f8fc;
    border-right-color: #f7f8fc;
    color: #665e8a;
}

#high-priority-videos .nav-tabs .nav-link.active,
#performing-well-videos .nav-tabs .nav-link.active,
#reports-tab .nav-link.active {
    color: #665e8a;
}

#high-priority-videos .nav-tabs .nav-link.active:hover,
#high-priority-videos .nav-tabs .nav-link.active:focus,
#performing-well-videos .nav-tabs .nav-link.active:hover,
#performing-well-videos .nav-tabs .nav-link.active:focus,
#reports-tab .nav-link.active:hover,
#reports-tab .nav-link.active:focus {
    background: #fff;
    border-color: #dee2e6 #dee2e6 #fff;
    color: #665e8a;
}

.form-select-dates {
    width: 85%;
}

ul.pagination .page-item .page-link {
    border-color: #dee2e6;
    background: #fff;
    color: #665e8a;
}

ul.pagination .page-item .page-link:hover {
    background: #eee;
}

ul.pagination .page-item.active .page-link {
    background: #665e8a;
    color: #fff;
}

.btn-toggle::before {
    width: 1.25em;
    line-height: 0;
    content: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3e%3cpath fill='%23ffffff' stroke='rgba%280,0,0,.5%29' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 14l6-6-6-6'/%3e%3c/svg%3e");
    transition: transform .35s ease;
    transform-origin: .5em 50%;
}

.btn-toggle[aria-expanded="true"] {
    color: rgba(0, 0, 0, .85);
}

.btn-toggle[aria-expanded="true"]::before {
    transform: rotate(90deg);
}

.btn-toggle-nav a {
    display: inline-flex;
    padding: .1875rem .5rem;
    margin-top: .125rem;
    margin-left: 1.25rem;
    text-decoration: none;
}

.btn-toggle-nav a:hover,
.btn-toggle-nav a:focus {
    background-color: #444;
}

.scrollarea {
    overflow-y: auto;
}

.fw-semibold {
    font-weight: 600;
}

.lh-tight {
    line-height: 1.25;
}

#create-test-sidebar-wrap {
    top: 120px;
    margin-top: 50px;
    width: 127px;
}

/* Info panel */
.info-panel {
    display: table;
    width: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 3px 8px -6px rgba(0, 0, 0, .50);
}

.info-panel .info-panel-inner {
    display: table-cell;
    position: relative;
    padding: 24px;
}

.info-panel span.panel-toggle {
    position: absolute;
    bottom: 0;
    left: 20px;
    background: #eee;
    color: #999;
    padding: 5px 10px 0px 10px;
    cursor: pointer;
    transition: 0.5s;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.info-panel span.panel-toggle:hover {
    color: #333;
}

/* Image upload */
.filepond--root {
    background: #f7f8fc;
}

.filepond--root.form-control {
    border: 0;
}

.filepond--root .filepond--drop-label {
    background: #eee;
}

.filepond--root .filepond--image-preview-wrapper {
    border-radius: 0;
}

.filepond--root .filepond--image-preview {
    background: #000;
}

.filepond--root .filepond--item {
    width: 320px;
    height: 180px !important;
    top: -16px;
    left: -16px;
}

.filepond--root .filepond--panel-center {
    background: transparent;
    height: auto !important;
}

.filepond--root .filepond--panel-bottom {
    display: none;
}

.filepond--credits {
    display: none;
}

.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-create-test::before {
    content: "\f35a";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 7px;
}

.btn-create-test.disabled::before {
    content: "\f023";
}

.btn-danger.disabled,
.btn-brandlytics.disabled {
    pointer-events: auto;
}

.btn-danger.disabled:hover {
    background-color: #dc3545;
}

.btn-brandlytics.disabled:hover {
    background-color: #665e8a !important;
}

/* Define the shaking animation */
@keyframes shake {
    0% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
    100% {
        transform: translateX(0);
    }
}

/* Apply the shaking animation */
#check-invitations.shake {
    animation: shake 1.5s infinite;
}

.hide-select {
    margin-top: 7px;
}

.report span.no-data {
    color: #fff;
    background: #665e8a;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
    position: relative;
    font-size: 1.2em;
    padding: 6px 18px 8px 12px;
    top: 10px;
}

#add-channel-row {
    display: none;
}

.search-and-filter select {
    border-color: #665e8a;
}

.search-and-filter select.active {
    background: #9186c3;
    color: #FFF;
}

@media (min-width: 1880px) {
    .custom-cols > .col-12 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    .custom-cols .livewire-test-recommendation-wrap {
        padding-bottom: 0;
        line-height: 2.6em;
        position: relative;
    }
    .custom-cols .livewire-test-recommendation-wrap span {
        position: absolute;
        right: 0;
    }
}

.cursor-pointer {
    cursor: pointer;
}
