@import url();

* {
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Open Sans';
    src: url('/static/fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html,
body,
.main {
    width: 100%;
    height: 100%;
}

body {
    font-family: 'Open Sans', sans-serif;
    /* background-color: #cde2db; */
    background: linear-gradient(-45deg, #ffffff, #80d3ce, #ffffff, #80d3ce);
    background-size: 400% 400%;
    animation: gradient 20s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* MAIN STRUCTURE */

.main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    margin: 0;
}

.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid #f5f5f6;
    padding: 1rem 0;
}

.content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex: 1;
}

/* FOOTER STYLING */
.footer {
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    background-color: white;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #555667;
    box-sizing: border-box;
}

.footer-container {
    width: 100%;
    max-width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.footer-flex-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-info-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-copyright {
    margin-bottom: 0.5rem;
}

.footer span {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-separator {
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    color: #00645E;
}

.footer-separator-desktop {
    display: none;
}

/* Desktop specific styles */
@media (min-width: 768px) {
    .footer-info-wrapper {
        flex-direction: row;
        gap: 0.5rem;
    }

    .footer-copyright {
        margin-bottom: 0;
    }

    .footer-separator-desktop {
        display: inline;
    }
}

/* Mobile specific styles */
@media (max-width: 767.98px) {
    .footer-links {
        padding-right: 0;
        justify-content: center;
    }
}

.footer-link {
    color: #00645E !important;
    text-decoration: underline;
    text-decoration-color: #00645E;
    text-underline-offset: 2px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

.footer-link:hover {
    color: #00645E !important;
    text-decoration-color: #00645E;
}

.current-language {
    margin-left: 4px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
}

.current-language.clickable {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 2px;
    transition: text-decoration-color 0.2s ease;
}

.current-language.clickable:hover {
    text-decoration-color: #555667;
}

.language-dropdown {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.language-menu {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    min-width: 150px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 0.25rem;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    z-index: 1000;
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
}

.language-menu .dropdown-item.active {
    font-weight: bold;
}

.language-menu .dropdown-item {
    display: block;
    text-align: left;
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 13px;
    line-height: 17px;
    letter-spacing: 0%;
    color: #555667;
    text-decoration: none;
}

.language-menu .dropdown-item:hover {
    background-color: #f0f0f0;
}

.language-dropdown svg {
    width: 24px;
    height: 24px;
    color: #000;
}

.lang-button {
    border: none !important;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

/* END FOOTER STYLING */

.row {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 1rem 0;
}

.col {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    width: 100%;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    /* margin: 1rem 0; */
    font-style: normal;
    color: #00423F;
}

h2.clamp {
    font-size: clamp(1.5rem, 2.5vw, 2.5rem);
    word-break: break-word;
}

span.clamp {
    font-size: clamp(14px, 2.5vw, 1rem);
    width: 100%;
    text-align: center;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #33b8b1;
    border: 1px solid #33b8b1;
    border-radius: 12px;
    color: white;
    padding: 0.75rem 2rem;
    width: calc(100vw - 2rem);
    max-width: 400px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.button:hover {
    background: #20202c !important;
}

.button:active {
    background: #2a2b3b !important;
}

.button:focus {
    background: #35364a !important;
    outline: none;
    border: 1px solid #606287;
    box-shadow: 0 0 8px 2px #064cff;
}

.button.primary {
    background: #303143;
    border: 1px solid #303143;
    color: white;
}

.button.outline {
    background: transparent;
    border: 1px solid #303143;
    color: #303143;
}

/* END MAIN STRUCTURE */

/* CUSTOM ELEMENTS */

.copyright,
.label {
    font-size: 12px;
}

.logo {
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin: 1rem; */
}

img.main-logo {
    width: auto;
    height: clamp(36px, 5vw, 42px);
    ;
}

img.logo-icon {
    width: auto;
    height: 24px;
}

img.no-document {
    width: 240px;
    height: auto;
    border: 1px solid white;
    border-radius: 1rem;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: calc(100% - 1rem);
    padding: 2rem;
    /* margin: 3rem; */
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid white;
    border-radius: 1rem;
    box-shadow: 0 0 20px 0 rgba(0, 66, 63, 0.2);
}

.labeled-pill {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    /* gap: 0.5rem; */
    margin: 1rem;
    border: 1px solid #33b8b1;
    border-radius: 3rem;
    padding: 0.25rem;
}

#qrcode {
    border-radius: 1rem;
}

#timeout {
    text-align: center;
    font-size: 24px;
    color: #00423F;
}

#message_panel {
    margin: 1rem;
    border: 1px solid #f5f5f6;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 15px 0 rgba(0, 66, 63, 0.4);
    padding: 0.5rem 1rem;
    width: auto;
    max-width: calc(100% - 1rem);
    /* display: flex;
    justify-content: center;
    align-items: center; */
}

.show {
    opacity: 1;
    transition: opacity 400ms;
}

.hide {
    opacity: 0;
    transition: opacity 400ms;
}

.hide.present {
    /* opacity: 0;
    transition: opacity 400ms; */
    position: relative;
    background-image: url('../img/spinner.svg');
    background-size: 60px;
    background-repeat: no-repeat;
    background-position: center;
    width: 240px;
    height: 240px;
}

.hide.present::after {
    content: 'Generating new QR Code...';
    font-size: 12px;
    text-align: center;
    display: block;
    position: absolute;
    width: 100%;
    top: 154px;
    left: 0;
    color: #00423F;
}

.hide>.labeled-pill {
    opacity: 0;
    transition: opacity 400ms;
}

.dim {
    opacity: .5;
    transition: opacity 400ms;
}

.hidden {
    display: none;
}

.modal {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: scale(1.1);
    transition: visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 2rem 2.5rem;
    width: 30em;
    border-radius: 0.5rem;
}

.close-button {
    float: right;
    width: 1.5rem;
    font-size: 1.2em;
    line-height: 1;
    padding: 0 .2em .15em;
    text-align: center;
    cursor: pointer;
    border-radius: 0.25rem;
    background-color: var(--clr-neutral);
    color: var(--clr-dark);
    transition: color 0.12s ease-in-out;
}

.close-button:hover {
    color: var(--clr-main);
}

.show-modal {
    opacity: 1;
    visibility: visible;
    transform: scale(1.0);
    transition: visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s;
}

input[type="file"] {
    /* padding: 1rem 0; */
    width: 100%;
    content: 'Select PDF file';
    background: white;
    border: 1px solid #303143;
    border-radius: 14px;
    color: #303143;
    padding: 0 0.5rem 0 0;
}

.button {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #33b8b1;
    border: 1px solid #33b8b1;
    border-radius: 12px;
    color: white;
    padding: 0.75rem 2rem;
    width: calc(100vw - 2rem);
    max-width: 400px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}



/* MESSAGES STYLING */
.messages-section {
    width: 100%;
    margin-bottom: 1rem;
}

.message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.message.error {
    border-left-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    color: #721c24;
}

.message.success {
    border-left-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
    color: #155724;
}

.message.info {
    border-left-color: #17a2b8;
    background: rgba(23, 162, 184, 0.1);
    color: #0c5460;
}

.message.warning {
    border-left-color: #ffc107;
    background: rgba(255, 193, 7, 0.1);
    color: #856404;
}

.message-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.message-icon {
    font-size: 18px;
    font-weight: bold;
    margin-left: 0.5rem;
}

.error-icon {
    color: #dc3545;
}

.success-icon {
    color: #28a745;
}

.info-icon {
    color: #17a2b8;
}

.warning-icon {
    color: #ffc107;
}

/* DRAG AND DROP FILE UPLOAD STYLING */
.file-upload-wrapper {
    width: 100%;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-input {
    display: none;
}

.file-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: calc(100vw - 2rem);
    max-width: 400px;
    min-height: 200px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed #00423F;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

.file-upload-area:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: #33b8b1;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 66, 63, 0.15);
}

.file-upload-area.dragover {
    background: rgba(51, 184, 177, 0.1);
    border-color: #33b8b1;
    border-style: solid;
    transform: scale(1.02);
}

.upload-icon {
    margin-bottom: 1rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.file-upload-area:hover .upload-icon {
    opacity: 1;
    transform: translateY(-2px);
}

.upload-icon svg {
    width: 48px;
    height: 48px;
}

.upload-text {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.upload-main-text {
    font-size: 16px;
    font-weight: 500;
    color: #00423F;
    display: block;
}

.upload-sub-text {
    font-size: 14px;
    color: #666;
    display: block;
}

.file-name {
    display: block;
    margin-top: 1rem;
    font-size: 14px;
    color: #00423F;
    text-align: center;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: rgba(51, 184, 177, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(51, 184, 177, 0.3);
}

.file-name:empty {
    display: none;
}

/* Fix for old file input styles - override conflicting rules */
input[type="file"]::-webkit-file-upload-button {
    display: none;
}

input[type="file"] {
    display: none;
}

/* END CUSTOM ELEMENTS */