@charset "UTF-8";

*,
::before,
::after {
    box-sizing: border-box;
}

body {
    font-family: "Montserrat Alternates", sans-serif;
    margin: 0;
    background-color: #f4f4f4;
}

a {
    text-decoration: none;
}

main {
    max-width: 800px;
    margin: auto;
    padding: 1rem;
}

main.error {
    text-align: center;
}

h1 {
    color: #0F468A;
    text-align: center;
}

h2 {
    color: #00A4B4;
}

i {
    color: #555;
    letter-spacing: .003em;
}

/* ===New===  */
#status {
    margin-top: 1em;
    font-weight: bold;
}

#status span {
    color: #555;
}

#status span {
    color: #687B81;
}

#status .error {
    color: #d9534f;
}

#log {
    white-space: pre-wrap;
    background: #f9f6ec;
    border: 1px solid #ccc;
    padding: 1em;
    margin-top: 1em;
    max-height: 400px;
    overflow-y: auto;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    border-radius: 3px;
}

button#runApp,
#download,
.subheading {
    width: max-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25em;
}

#download {
    margin-top: 1.5em;
    display: none;
}

svg.icon {
    height: auto;
}

svg.icon.start {
    width: 1em;
}

svg.icon.download {
    width: 1.25em;
}

svg.icon path {
    fill: #ffffff;
}

#iconControlPanel.active {
    animation: spin 1s linear infinite;
}

svg.icon.control-panel path {
    fill: #00A4B4;
}

/* =============  */
form {
    margin-bottom: 20px;
}

#downloadBtn {
    display: none;
}

input#file-upload-button {
    margin-bottom: 10px;
}

.file-label {
    display: inline-block;
    padding: 10px 15px;
    background-color: #0258b5;
    color: white;
    cursor: pointer;
    border-radius: 4px;
    margin-bottom: 16px;
}

.file-label:hover {
    background-color: #0258b5cc;
}

.file-input {
    display: none;
}

#file-name {
    display: inline-block;
    margin-left: 10px;
    font-style: italic;
    color: #555;
    line-height: 1;
    padding: 10px 14px;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;
}

button {
    font-size: inherit;
    padding: 10px 15px;
    background-color: #00A4B4;
    color: white;
    border: none;
    cursor: pointer;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}

button:hover {
    background-color: #00A4B4cc;
}

button,
label {
    transition-duration: .3s;
}

.btn {
    padding: 10px 15px;
    background-color: #0F468A;
    color: white;
    border: none;
    cursor: pointer;
    transition-duration: .3s;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}

.btn:hover {
    background-color: #0F468Acc;
}

.btn-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon.progress {
    display: none;
    width: 36px;
    height: auto;
    border: 2px solid #01e5fbcc;
    border-top: 2px solid #00A4B4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        -webkit-transform: rotate(0deg);
        -moz-transform: rotate(0deg);
        -ms-transform: rotate(0deg);
        -o-transform: rotate(0deg);
        transform: rotate(0deg);
    }

    100% {
        -webkit-transform: rotate(360deg);
        -moz-transform: rotate(360deg);
        -ms-transform: rotate(360deg);
        -o-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

svg.icon.progress path {
    stroke: #00A4B4;
}

/* === Login Page Styles === */
.container {
    max-width: 400px;
    margin: 1rem auto;
    padding: 1rem;
    border: 1px solid #687B8133;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    border-radius: 5px;
}

.login-page .heading {
    text-align: center;
    margin-bottom: 20px;
}

.login-page form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

:where(.login-page) :is(label, input, button) {
    display: block;
    width: 100%;
    margin: 15px 0;
}

:where(.login-page) :is(button) {
    padding: 10px;
    background-color: #0F468A;
    color: white;
    border: none;
    cursor: pointer;
    transition-duration: .3s;
}

:where(.login-page) :is(button):hover {
    background-color: #0F468Acc;
}

:where(.login-page) :is(button, input[type="password"]) {
    font-size: 1rem;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    -ms-border-radius: 4px;
    -o-border-radius: 4px;
    border-radius: 4px;
}

input[type="password"] {
    padding: .5rem 1rem;
    border: 1px solid #0F468Acc;
}

input[type="password"]:focus {
    border-color: #0F468A;
    outline: none;
    box-shadow: 0 0 5px #0F468Acc;
}

.link {
    text-decoration: none;
    padding: .5rem 1rem;
    color: #fff;
    background: #0F468A;
    transition-duration: 0.3s;
    -webkit-border-radius: 4px;
    -moz-border-radius: 4px;
    border-radius: 4px;
    display: inline-block;
}

.login .link {
    margin-top: 1rem;
}

.link:hover {
    background: #0F468ACC;
}

.error .link {
    margin-bottom: 1rem;
}