:host {
    overflow-y: auto;
}

#filter,
:host ::ng-deep #filter .neu-container {
    width: 100%;
}

:host ::ng-deep #filter .neu-container,
:host ::ng-deep #filter .neu-container::before {
    border-radius: 8px;
}

:host ::ng-deep #filter .neu-container {
    padding: 0px;
}

:host ::ng-deep #filter .neu-container-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 0 10px 10px;
}

:host ::ng-deep #filter .neu-container-content > * {
    flex-shrink: 0;
}

:host ::ng-deep #filter .neu-container-content .neu-button,
:host ::ng-deep #filter .neu-container-content neu-button {
    margin-right: 10px;
}

:host ::ng-deep #filter .neu-container-content neu-select  {
    margin-right: 20px;
}

:host ::ng-deep #filter .neu-dropdown-title {
    padding: 15px 20px;
}

:host ::ng-deep #secondary .neu-input {
    min-width: auto !important;
}

#today-button {
    margin-right: 20px;
}

#paginator {
    display: flex;
    flex-grow: 1;
    align-items: center;
    margin-right: 20px;
}

#paginate-buttons {
    display: flex;
    align-items: center;
    border-radius: 8px;
    margin-right: 20px;
}

#paginate-buttons button {
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    box-shadow: -4px -4px 20px #FFF;
    position: relative;
    padding: 12px 20px;
    border: none;
}

#paginate-buttons button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
    pointer-events: none;
}

#paginate-buttons .previous,
#paginate-buttons .previous::before {
    border-radius: 8px 0 0 8px;
}

#paginate-buttons .next,
#paginate-buttons .next::before {
    border-radius: 0 8px 8px 0;
}

#paginate-buttons button:enabled {
    cursor:pointer;
}

#paginate-buttons button:focus {
    outline: none;
}

#paginate-buttons button:active {
    box-shadow: 3px 3px 20px rgba(88, 108, 138, 0.5) inset;
}

#paginate-buttons button:active::before {
    box-shadow: -4px -4px 20px #FFF inset;
}

#paginator #day {
    flex-grow: 1;
}

#training-room-select {

}

:host ::ng-deep .neu-dropdown {
    margin-bottom: unset;
}

:host ::ng-deep #calendar .neu-container {
    padding: 8px;
}

:host ::ng-deep #calendar .neu-container-content {
    padding: 0px;
}

#content #secondary {
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    border-radius: 16px;
    box-shadow: -4px -4px 20px #FFF;
    position: relative;
    display: block;
}

#content #secondary::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
    border-radius: 16px;
    pointer-events: none;
}

/********** CALENDAR STYLES **********/

:host ::ng-deep .cal-day-view,
:host ::ng-deep .cal-week-view {
    background-color: transparent;
    border: unset;
}

:host ::ng-deep .cal-time-events {
    border: unset;
}

:host ::ng-deep .cal-week-view .cal-hour-odd {
    background-color: #F8F8FC;
}

:host ::ng-deep .cal-week-view .cal-day-headers {
    border: unset;
    border-bottom: 3px solid rgba(87, 95, 107, 0.38);
}

:host ::ng-deep .cal-week-view .cal-day-headers .cal-header {
    border: unset !important;
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    border-radius: 8px;
    box-shadow: 1px 1px 10px -2px rgba(36, 65, 93, 0.3);
    position: relative;
    margin: 10px 5px;
    padding: 10px;
    line-height: 0.7;
}

:host ::ng-deep .cal-week-view .cal-day-headers .cal-header b {
    font-weight: 500;
    display: block;
    margin-bottom: 2px;
}

:host ::ng-deep .cal-week-view .cal-day-headers .cal-header.cal-today b {
    color: #8B278F;
}

:host ::ng-deep .cal-week-view .cal-day-headers .cal-header.undefined.cal-future {
    outline-style: dashed;
    outline-width: 2px;
    outline-color: #2D3891;
}

:host ::ng-deep .cal-week-view .cal-day-headers .cal-header.cal-drag-over.cal-future {
    background-image: linear-gradient(135deg, hsl(231, 16%, 81%) -50%, hsl(225, 18%, 86%) 120%);
    cursor: copy !important;
}

:host ::ng-deep span.cal-event-title {
    color: #F8F8FC;
}

:host ::ng-deep span.cal-event-title .type {
    display: block;
    font-weight: 500;
    color: #F8F8FC;
}

:host ::ng-deep span.cal-event-title .type i {
    margin-right: 5px;
}

:host ::ng-deep span.cal-event-title .time {
    display: block;
    font-weight: 400;
    margin-top: -10px;
    color: #F8F8FC;
    font-size: 12px;
}

:host ::ng-deep .cal-week-view .cal-header.cal-weekend span {
    color: #2D3891;
}

/********** SECONDARY PART **********/
.secondary-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    max-height: 100%;
}

.secondary-content > * {
    width: 100%;
    display: block;
    padding-left: 20px;
    padding-right: 20px;
}

.secondary-content > *:first-child {
    padding-top: 20px;
}

.secondary-content > *:last-child {
    margin-bottom: 20px;
}

.secondary-content h2 {
    color: #8B278F;
    font-weight: 500;
    font-size: 16px;
    margin: 0 0 10px;
}

.secondary-content h2 i {
    margin-right: 10px;
}

.secondary-content .search {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.secondary-content .search neu-button {
    margin-right: 20px;
    margin-left: 0px !important;
}

.secondary-content .search neu-input {
    flex-grow: 1;
}

.secondary-content .scrollable {
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: auto;
    width: 100%;
    display: block;
    padding: 0;
}

.secondary-content .header {
    margin-bottom: 20px;
}

.secondary-content .scrollable .categories,
.secondary-content .scrollable .workouts,
.secondary-content .scrollable .templates,
.secondary-content .scrollable.edit-template,
.secondary-content .scrollable .generate-calendar-inputs {
    padding: 0px 20px 20px;
}

.secondary-content .scrollable .categories li {
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    border-radius: 32px;
    box-shadow: -4px -4px 20px #FFF;
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius: 32px;
    padding: 20px;
    margin-bottom: 10px;
    cursor: pointer;
}

.secondary-content .scrollable .categories li::before,
.secondary-content .scrollable .workouts li::before,
.secondary-content .scrollable .templates li::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-color: transparent;
    box-shadow: 3px 3px 20px rgba(36, 65, 93, 0.3);
    border-radius: 16px;
    pointer-events: none;
    border-radius: 32px;
}

.secondary-content .scrollable .categories li:active {
    box-shadow: 1px 1px 12px rgba(88, 108, 138, 0.5) inset;
}

.secondary-content .scrollable .categories li:active::before  {
    box-shadow: -3px -3px 13px #FFF inset;
}

.secondary-content .scrollable .categories li span,
.secondary-content .scrollable .categories li i {
    color: #8B278F;
}

.secondary-content .scrollable .categories li span.name {
    flex-grow: 1;
    font-weight: 500;
}

.secondary-content .scrollable .categories li i {
    margin-left: 20px;
}

.secondary-content .scrollable .workouts li,
.secondary-content .scrollable .templates li {
    background-image: linear-gradient(135deg, #E5E6EC -50%, #F2F3F6 120%);
    border-radius: 16px;
    box-shadow: -4px -4px 20px #FFF;
    position: relative;
    display: block;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 10px;
    cursor: grab;
}

.secondary-content .scrollable .workouts li {
    padding: unset;
}

.secondary-content .scrollable .workouts li.drag-active {
    opacity: 0.8;
    z-index: 3;
}

.secondary-content .scrollable .workouts li::before,
.secondary-content .scrollable .templates li::before {
    border-radius: 16px;
}
 
.secondary-content .scrollable .workouts li p {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
}

.secondary-content .scrollable .workouts li neu-chip {
    margin-left: 20px;
    max-width: 110px;
}

.secondary-content .scrollable .workouts li .name,
.secondary-content .scrollable .templates li .name {
    font-size: 16px;
    font-weight: 500;
    margin-top: 0px;
}

.secondary-content .scrollable .workouts li p:last-child,
.secondary-content .scrollable .templates li p:last-child {
    justify-content: space-between;
    margin-bottom: unset;
}

.secondary-content .more-info {
    margin-left: 20px;
}

.secondary-content .scrollable .templates li {
    display: flex;
    flex-direction: column;
}

.secondary .scrollable .templates li .buttons {
    display: flex;
    width: 100%;
}

.secondary-content .scrollable .templates li p {
    margin: 0 0 10px;
}

.secondary-content .scrollable .templates li .buttons neu-button {
    width: calc(50% - 10px);
    margin-right: 10px;
}

.generate-calendar-inputs neu-input,
.edit-template neu-input {
    margin-bottom: 20px;
    display: block;
}

.generate-calendar-inputs label,
.edit-template label {
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

:host ::ng-deep .secondary-content .more-info .neu-button {
    width: 30px;
    height: 30px;
    padding: 5px;
}

:host ::ng-deep .secondary-content .more-info .neu-button i {
    font-size: 12px;
}

.secondary-content.edit-template h2 {
    display: flex;
    align-items: center;
}

:host ::ng-deep .secondary-content.edit-template .add-exception .neu-button {
    display: block;
    margin-left: auto;
}

.secondary-content.edit-template h2 neu-button.more-info {
    margin: 0 20px 0 0;
}

:host ::ng-deep .secondary-content.edit-template h2 neu-button .neu-button {
    display: inline-block;
}

.secondary-content neu-multi-toggle {
    display: block;
    margin-bottom: 20px;
}

:host ::ng-deep .secondary-content .edit-template .excl .neu-container {
    padding: 0px;
}

:host ::ng-deep .secondary-content .edit-template .excl .neu-container neu-input:last-child {
    margin-bottom: unset;
}

:host ::ng-deep .secondary-content .edit-template .excl .neu-container h3 {
    display: block;
    margin: 0 0 20px;
    font-size: 16px;
    font-weight: 500;
}

:host ::ng-deep .secondary-content .edit-template .excl .neu-container .more-info {
    position: absolute;
    right: 20px;
    top: 15px;
}

@media screen and (min-width: 992px) {
    #calendar {
        position: relative;
    }

    #content {
        max-height: calc(100% - 80px);
    }

    :host ::ng-deep .cal-week-view .cal-hour-odd {
        background-color: rgba(248, 248, 252, 0.578);
    }

    :host ::ng-deep .cal-week-view .cal-time-events {
        max-height: calc(100vh - 330px);
        overflow-y: auto;
    }

    :host ::ng-deep #calendar .neu-container {
        margin-bottom: unset;
    }

    :host ::ng-deep .cal-week-view .cal-time-events .cal-day-column {
        margin-right: 10px;
        height: fit-content;
        border-left: 1px solid rgba(87, 95, 107, 0.18);
    }

    :host ::ng-deep .cal-week-view .cal-hour {
        width: calc(100% + 10px);
    }
}