/*
  Copyright 2025 Imago Veritatis (Timoh de Solarys)

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #1a1e23;
    color: #e0e0e0;
    line-height: 1.6;
    padding: 0.5%;
    padding-right: 0%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2a2e35;
    padding: 10px 20px;
    margin-right: 0.5%;
    border-radius: 8px;
    position: relative;
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    z-index: 10;
}

.logo {
    height: 40px;
    width: auto;
}

.page-title {
    font-size: 1.2rem;
    font-weight: bold;
    font-style: italic;
    color: #ffffff;
    text-align: center;
    flex-grow: 1;
}

.header-button {
    font-size: 1rem;
    color: #66aaff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 5px;
    background-color: #333;
    transition: background-color 0.3s ease;
    margin-left: 5px;
    border: none;
    cursor: pointer;
}

.header-button:hover {
    background-color: #444;
}

h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 10px;
}

form, #selectForm {
    background-color: #313338;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin-top: 0.5%;
    margin-right: 0.5%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media screen and (max-width: 1920px) {
    form, #selectForm {
        margin-right: 1%;
        margin-top: 1%;
    }

    .main-header{
        margin-right: 1%;
    }

    body {
        padding: 1%;
        padding-right: 0%;
    }
}

@media screen and (max-width: 960px) {
    form, #selectForm {
        margin-right: 1.5%;
        margin-top: 1.5%;
    }

    .main-header{
        margin-right: 1.5%;
    }

    body {
        padding: 1.5%;
        padding-right: 0%;
    }
}

@media only screen and (max-width: 600px) {
    form, #selectForm {
        margin-right: 2%;
        margin-top: 2%;
    }

    .main-header{
        margin-right: 2%;
    }

    body {
        padding: 2%;
        padding-right: 0%;
    }
}

label {
    font-size: 1.1rem;
    color: #d0d0d0;
    margin-bottom: 5px;
    display: block;
}

input, textarea, select {
    background-color: #444848;
    color: #e0e0e0;
    border: 1px solid #555757;
    padding: 10px;
    width: 100%;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 1rem;
}

input:hover, textarea:hover, select:hover {
    border-color: #66aaff;
}

input[type="file"] {
    background-color: transparent;
    color: #e0e0e0;
    border: none;
    margin-bottom: 20px;
    font-size: 1rem;
}

input[type="file"]::file-selector-button {
    background-color: #66aaff;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

input[type="file"]::file-selector-button:hover {
    background-color: #539ed8;
}


button {
    background-color: #66aaff;
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #539ed8;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: #313338;
    min-width: 160px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    border-radius: 5px;
    z-index: 100;
}

.dropdown-content a {
    color: #e0e0e0;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #444848;
}

.dropdown-separator {
  border: none;
  border-top: 1px solid #555;
  margin: 8px 0;
}