/* General Body Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    padding-bottom: 200px;
    color: #212529;
    overflow-x: hidden;
}

/* Container Styles */
.container {
    width: 90%;
    max-width: 600px;
    margin: 30px auto;
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Container in Dashboard */
.dashboard .container {
    max-width: none;
}

/* Logo */
.logo {
    display: block;
    margin: 0 auto 20px;
    width: 120px;
}

/* Headings */
h2 {
    color: #343a40;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 10px;
    margin-bottom: 20px;
    margin-top: 40px;
}

/* Descriptions */
p {
    margin: 0;
    color: #6c757d;
    font-size: 0.8em;
}

/* Form Styles */
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="number"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 16px;
}

input[type="text"]:read-only, input[type="email"]:read-only, input[type="number"]:read-only {
    opacity: 0.5;
    cursor: not-allowed;
}

textarea {
    resize: vertical;
}

input[type="checkbox"] {
    margin-right: 10px;
}

textarea {
    font-family: Arial, sans-serif;
}

/* Total amount */
.horizontal-line {
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
    margin-bottom: 20px;
}
.total-amount {
    font-size: 1em;
    font-weight: bold;
    margin-top: 20px;
    color: #343a40;
}

.upload-field {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
}

.upload-field label {
    margin-top: 0;
}

/* Buttons */
button,
input[type="submit"] {
    background-color: #007bff;
    color: #ffffff;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: inline-block;
    margin-top: 20px;
}

button:hover,
input[type="submit"]:hover {
    background-color: #0056b3;
}

/* Error Messages */
.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 20px;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #ffffff;
}

/* Table in Dashboard */
.dashboard table {
    overflow-x: auto;
    max-width: 100%;
    display: block; /* to make overflow auto work*/
}

th, td {
    text-align: left;
    padding: 12px;
    border: 1px solid #dee2e6;
}

td.nobreak {
    white-space: nowrap;
}

th {
    background-color: #f1f3f5;
    font-weight: bold;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

/* Links */
a {
    text-decoration: none;
    color: #007bff;
}

a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    input[type="text"],
    input[type="email"],
    input[type="date"],
    input[type="number"],
    textarea {
        font-size: 14px;
    }

    button,
    input[type="submit"] {
        font-size: 14px;
    }
}

/* Saved message in dashboard */
.saved-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-family: Arial, sans-serif;
    z-index: 1000;
}

/* Delete button in dashboard */
#delete-button {
    background-color: #dc3545;
    margin-top: 0;
}

/* Footer with imprint */
footer {
    display: flex; justify-content: center; width: 100%;
}
footer a { color: darkgrey; }

/* Film stripes in background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    --max-movement-shift: 37.5vw;
}

.background img {
    position: absolute;
    width: 150vw;
    min-width: 1200px;
    transform-origin: top left;
    transform: rotate(var(--rotation)) translateX(0vw);
    mix-blend-mode: color-dodge; /* Cooler looking overlay effect */
}

.background .stripe-1 {
    bottom: -15%; left: 0%;
    --rotation: -75deg;
}
.background .stripe-2 {
    top: -10%; left: 60%;
    --rotation: 60deg;
}
.background .stripe-3 {
    top: 20%; left: -5%;
    --rotation: -20deg;
}
.background .stripe-4 {
    bottom: -15%; left: 25%;
    --rotation: -20deg;
}
@media (max-width: 1400px) {
    .background .stripe-1 {
        top: 30%; left: -100px;
        --rotation: -65deg;
    }
    .background .stripe-2 {
        top: -10%; left: 75%;
        --rotation: 60deg;
    }
    .background .stripe-3 {
        top: 5%;
        left: -5%;
        --rotation: -10deg;
    }
    .background .stripe-4 {
        bottom: -10%; left: 25%;
        --rotation: -20deg;
    }
}