@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.menu-container {
    font-family: 'Roboto', sans-serif;
    width: 95%;
    max-width: 1400px;
    margin: 20px auto;
    background: 0 0 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.menu-container a, .menu-container button, .footer-button, .email-button, .delete-button {
    font-family: 'Roboto', sans-serif;
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: bold;
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.menu-left {
    flex: 1;
}

.menu-right {
    display: flex;
    align-items: center;
}

.menu-right a, .menu-right button, .email-button {
    margin-left: 10px;
    padding: 15px 25px;
    background-color: #f1f1f1;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.menu-right a:hover, .menu-right button:hover, .email-button:hover {
    background-color: #e0e0e0;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1;
    overflow: hidden;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.dropdown:hover .dropdown-content {
    display: block;
}

h1 {
    margin: 0;
    color: #333;
    text-align: center;
    flex-grow: 1;
}

/* Formularstil */
.form-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 10px;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 100%;
}

/* Labelstil */
.form-container label {
    margin-right: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

/* Input-Stil */
.form-container input[type="file"] {
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Button-Stil */
.form-container button {
    padding: 5px 10px;
    background-color: #f1f1f1;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background-color: #e0e0e0;
}

.logout-button, #user-guide-btn {
    padding: 10px 20px;
    background-color: #f1f1f1;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 10px;
}

.logout-button:hover, #user-guide-btn:hover {
    background-color: #e0e0e0;
}

.upload-form {
    text-align: center;
    margin-bottom: 20px;
}

.upload-form input[type="file"] {
    display: inline-block;
    margin-right: 10px;
}

.upload-form button {
    padding: 10px 20px;
    background-color: #f1f1f1;
    color: #000;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.upload-form button:hover {
    background-color: #e0e0e0;
}

.message {
    padding: 10px;
    background-color: #dff0d8;
    color: #3c763d;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    margin-bottom: 20px;
    display: block;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #ccc;
    text-align: left;
    word-wrap: break-word;
}

th {
    background-color: #f2f2f2;
}

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

.actions {
    display: flex;
    gap: 10px;
}

.actions button {
    padding: 5px 10px;
    text-decoration: none;
    color: #000;
    border-radius: 4px;
    text-align: center;
    border: none;
    cursor: pointer;
}

.delete-button {
    background-color: #f1f1f1;
    color: #000;
}

.delete-button:hover {
    background-color: #e0e0e0;
}

.actions .email-button {
    background-color: #f1f1f1;
    color: #000;
}

.actions .email-button:hover {
    background-color: #e0e0e0;
}

.edit-comment {
    background-color: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 5px;
    min-width: 400px;
    font-size: 12px;
}

.edit-status {
    width: 100%;
    padding: 5px;
}

#user-guide {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    max-height: 80%;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

#user-guide h2 {
    margin-top: 0;
}

#close-user-guide {
    display: block;
    text-align: right;
    cursor: pointer;
    color: #d9534f;
    font-size: 28px;
    font-weight: bold;
}

#user-guide-btn:hover {
    background-color: #e0e0e0;
}

.dashboard-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

canvas#statusChart {
    width: 100%;
    max-width: 250px;
    height: 250px;
    margin: 0 auto;
}

.report-container {
    width: 100%;
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    text-align: center;
}

#dashboard {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 600px;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

#dashboard h2 {
    margin-top: 0;
}

#close-dashboard {
    display: block;
    text-align: right;
    cursor: pointer;
    color: #d9534f;
    font-size: 28px;
    font-weight: bold;
}

button, .logout-button, .index-button {
    padding: 10px 20px;
    background-color: #f1f1f1;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    border: none;
}

button:hover, .logout-button:hover, .index-button:hover {
    background-color: #e0e0e0;
}

.index-button {
    font-size: 20px;
    font-weight: bold;
    padding: 15px 25px;
}

#dashboard-btn, #db-cleanup-btn {
    padding: 15px 25px;
    background-color: #f1f1f1;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    border: none;
}

#dashboard-btn:hover, #db-cleanup-btn:hover {
    background-color: #e0e0e0;
}

.report-container {
    margin-top: 20px;
    text-align: center;
}

.report-container h2 {
    margin-bottom: 10px;
}

.report-container form {
    display: inline-block;
    margin: 5px;
}

.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    background-color: #fff;
    text-align: center;
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}

#change-password-form label {
    display: block;
    margin: 10px 0 5px;
}

#change-password-form input {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#change-password-form button {
    padding: 10px 20px;
    background-color: #4CAF50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#change-password-form button:hover {
    background-color: #45a049;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        min-height: auto;
    }

    .menu-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .menu-left, .menu-right {
        width: 100%;
        text-align: center;
    }

    .menu-item, .logout-button, #user-guide-btn, #dashboard-btn, #db-cleanup-btn {
        width: 100%;
        margin: 5px 0;
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }

    table {
        font-size: 14px;
    }

    th, td {
        padding: 8px;
    }

    .actions {
        flex-direction: column;
        gap: 5px;
    }

    .edit-comment {
        min-width: 100%;
        box-sizing: border-box;
    }

    #user-guide, #dashboard {
        width: 90%;
        max-width: 90%;
        max-height: 70%;
        padding: 10px;
    }

    #user-guide h2, #dashboard h2 {
        font-size: 18px;
    }

    .popup {
        width: 90%;
        padding: 10px;
    }

    #change-password-form input {
        width: calc(100% - 16px);
    }
}

@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    th, td {
        padding: 8px;
        text-align: left;
        white-space: nowrap;
    }

    .status-container {
        margin-bottom: 20px;
    }

    .status-container h2 {
        font-size: 20px;
        margin: 10px 0;
    }

    .upload-form, .filter-form {
        text-align: left;
    }

    .upload-form input[type="file"], .upload-form button, .filter-form input, .filter-form button, .filter-form select {
        width: 100%;
        margin: 5px 0;
        padding: 10px;
    }
}

.comment-separator {
    color: red;
    font-weight: bold;
}

.status-container {
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.footer-container {
    width: 100%;
    position: fixed;
    bottom: 0;
    background-color: #f1f1f1;
    padding: 15px 0px 3px;
    text-align: center;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.1);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-button {
    text-decoration: none;
    color: #000;
    font-size: 16px;
    font-weight: bold;
}

.copyright {
    margin-left: 10px;
    font-size: 16px;
    color: #000;
    font-weight: bold;
}

.footer-link {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.footer-link:hover {
    color: #007bff;
}
#email-actions-popup {
    display: none;
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    border-radius: 10px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

#email-actions-popup #close-email-actions-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

#email-actions-popup h2 {
    margin-bottom: 20px;
}

#email-actions-popup button {
    display: block;
    margin: 10px auto;
    padding: 10px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%; /* Ensure buttons take the full width available */
    max-width: 300px; /* Set a maximum width to avoid excessively wide buttons */
    text-align: center;
}

#email-actions-popup button:hover {
    background-color: #4cae4c;
}

button[disabled] {
    background-color: #ccc;
    cursor: not-allowed;
}

.copied-message {
    position: fixed;
    top: 20px; /* Ändert die Position der Nachricht nach oben */
    left: 50%;
    transform: translateX(-50%);
    background-color: #4cae4c;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    font-size: 16px;
    display: none;
    z-index: 1001;
}
.accordion-header {
    cursor: pointer;
    padding: 10px;
    background-color: #f1f1f1;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: bold;
}

.accordion-content {
    display: none;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
}
.search-container {
    text-align: center;
    margin-bottom: 20px;
}

#search-input {
    width: 300px;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
}

#search-button {
    padding: 10px 20px;
    margin-left: 10px;
    background-color: #5cb85c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#search-button:hover {
    background-color: #4cae4c;
}
.upload-form-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-container {
    display: flex;
    align-items: center;
}

.action-link-container {
    margin-left: 10px; /* Adjust spacing as needed */
}

.accordion {
    margin-top: 20px;
    max-width: 600px; /* Set a max-width for the accordion */
    margin-left: auto;
    margin-right: auto;
}



.accordion-header h5 {
    margin: 0; /* Remove default margin */
}
#scrollToTopBtn {
    display: none; /* Hidden by default */
    position: fixed; /* Fixed position */
    bottom: 20px; /* Place the button at the bottom of the page */
    right: 30px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: #555; /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 15px; /* Some padding */
    border-radius: 10px; /* Rounded corners */
    font-size: 18px; /* Increase font size */
}

#scrollToTopBtn:hover {
    background-color: #333; /* Add a dark-grey background on hover */
}

