/* styles.css */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

.navbar {
    background-color: #2c3e50;
    overflow: hidden;
}

.navbar a {
    float: left;
    display: block;
    color: #ecf0f1;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
}

.navbar a:hover {
    background-color: #1abc9c;
    color: white;
}

.container {
    padding: 20px;
    margin-bottom: 60px; /* Platz für die Footer */
}

.footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    text-align: center;
    padding: 10px;
    position: fixed;
    bottom: 0;
    width: 100%;
}

h2, h3 {
    color: #34495e;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.button {
    background-color: #1abc9c;
    color: white;
    padding: 8px 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    margin-right: 5px;
    display: inline-block;
    font-size: 14px;
}

.button:hover {
    background-color: #16a085;
}

.delete-button {
    background-color: #e74c3c; /* Rot für Lösch-Button */
}

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

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

.search-form input[type="text"] {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    width: 200px;
}

.search-form select {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
}

.search-form button {
    padding: 8px 12px;
    background-color: #1abc9c;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-form button:hover {
    background-color: #16a085;
}

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

table, th, td {
    border: 1px solid #bdc3c7;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background-color: #ecf0f1;
    cursor: pointer;
    position: relative;
}

th a {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

th a:hover {
    text-decoration: underline;
}

th a::after {
    content: '';
    margin-left: 5px;
    border: 5px solid transparent;
    border-top-color: #7f8c8d;
    display: inline-block;
}

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

tr:hover {
    background-color: #e1e1e1;
}

.table-status {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin: auto;
}

.pagination {
    margin: 20px 0;
    text-align: center;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    background-color: #f1f1f1;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover {
    background-color: #ddd;
}

.pagination .current-page {
    background-color: #1abc9c;
    color: white;
}

.success-message {
    color: green;
    margin-top: 10px;
}

.error-message {
    color: red;
    margin-top: 10px;
}
