/*********************************/
/* Global styles for the website */
/*********************************/

:root {
    --bulma-primary-h: 179deg;
    --bulma-primary-l: 34%;
    --bulma-link-h: 216deg;
    --bulma-link-s: 77%;
    --bulma-link-l: 51%;
    --bulma-info-h: 272deg;
    --bulma-info-l: 44%;
    --bulma-success-h: 148deg;
    --bulma-success-s: 100%;
    --bulma-success-l: 35%;
    --bulma-warning-h: 44deg;
    --bulma-warning-l: 50%;
    --bulma-danger-h: 357deg;
    --bulma-danger-l: 60%;
    --bulma-family-primary: Roboto, Helvetica, Arial, sans-serif;
    --bulma-family-secondary: Roboto, Helvetica, Arial, sans-serif;
    --bulma-family-code: Roboto Mono, Ubuntu Mono, monospace;
}

.staff-theme {
    --bulma-primary-h: 44deg;
    --bulma-primary-l: 50%;
    --bulma-link-h: 44deg;
    --bulma-link-l: 50%;
    --bulma-info-h: 44deg;
    --bulma-info-l: 50%;
    --bulma-success-h: 179deg;
    --bulma-success-l: 34%;
}

.speaker-theme {
    --bulma-primary-h: 357deg;
    --bulma-primary-l: 60%;
    --bulma-link-h: 357deg;
    --bulma-link-l: 60%;
    --bulma-info-h: 357deg;
    --bulma-info-l: 60%;
    --bulma-success-h: 179deg;
    --bulma-success-l: 34%;
}

.sponsor-theme {
    --bulma-link-h: 179deg;
    --bulma-link-l: 34%;
    --bulma-link-on-scheme-l: 34%;
    --bulma-info-h: 179deg;
    --bulma-info-l: 34%;
    --bulma-success-h: 179deg;
    --bulma-success-l: 34%;
}

/*********************************/
/*  Settings for main elements   */
/*********************************/

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

main {
    flex-grow: 1;
}

.smooth {
    animation: smoothTransition 0.5s ease-out forwards;
    will-change: transform, opacity, filter;
}

@keyframes smoothTransition {
    0% {
        opacity: 0;
        transform: translateY(10px);
        filter: blur(1px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@media screen and (max-width: 768px) {
    .footer-version {
        display: none;
    }
}

@media screen and (max-width: 1024px) {
    .container {
        padding: 0 2em;
    }
}

.card,
.box,
.modal-card-head {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

select[name="language"] {
    border-color: var(--bulma-scheme-main-bis);
    background-color: var(--bulma-scheme-main-bis);
}

.required::after {
    content: "*";
    color: #f14668;
    margin-left: 4px;
}

/*********************************/
/* Custom switch used globally   */
/*********************************/

.cyberpunk-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--bulma-arrow-color);
    border-radius: 5px;
    background-color: transparent;
    display: inline-block;
    position: relative;
    margin-right: 10px;
    cursor: pointer;
}

.cyberpunk-checkbox:before {
    content: "";
    background-color: var(--bulma-arrow-color);
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 10px;
    height: 10px;
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.cyberpunk-checkbox:checked:before {
    transform: translate(-50%, -50%) scale(1);
}

.cyberpunk-checkbox-label {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
}

/***************************************/
/* Checkbox for sponsor action items   */
/***************************************/

.fancy-checkbox-container {
    cursor: pointer;
}

.fancy-checkbox-container input {
    display: none;
}

.fancy-checkbox-container svg {
    overflow: visible;
}

.fancy-checkbox-path {
    fill: none;
    stroke: var(--bulma-text);;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke-dasharray 0.5s ease, stroke-dashoffset 0.5s ease;
    stroke-dasharray: 241 9999999;
    stroke-dashoffset: 0;
}

.fancy-checkbox-container input:checked~svg .fancy-checkbox-path {
    stroke-dasharray: 70.5096664428711 9999999;
    stroke-dashoffset: -262.2723388671875;
    stroke: #23d160;
}

.task-body-pre_event {
    border-inline-start-color: #00ACA8;
}

.task-body-pre_event .columns .column .icon-text .icon i {
    color: #00ACA8;
}

.task-body-during_event {
    border-inline-start-color: #FF323C;
}

.task-body-during_event .columns .column .icon-text .icon i {
    color: #FF323C;
}

.task-body-post_event {
    border-inline-start-color: #FFBA00;
}

.task-body-post_event .columns .column .icon-text .icon i {
    color: #FFBA00;
}

.collapsible-trigger {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-radius: 4px;
    user-select: none;
}

.collapsible-trigger:hover {
    color: var(--bulma-label-color);
}

.collapsible-trigger:hover .icon {
    color: var(--bulma-arrow-color);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 10px;
}

.collapsible-content.is-active {
    max-height: 1000px;
    padding: 10px;
}

.collapsible-trigger .icon {
    transition: transform 0.3s ease;
}

.collapsible-trigger.is-active .icon {
    transform: rotate(90deg);
    color: var(--bulma-link, #3273dc);
}


/*********************************/
/* Global notification popup     */
/*********************************/

.notifications-container {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    z-index: 50;
    min-width: 250px;
    text-align: left;
}

.notifications-container .notification {
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.5s ease-out, opacity 0.3s ease-in-out;
    margin-bottom: 0.75rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    max-width: 350px;
}

.notifications-container .notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notifications-container .notification.hide {
    transform: translateX(120%);
    opacity: 0;
}