/* Grundlayout */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Formular-Layout */
form {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 20px;
}

.field-group {
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
    background: #f9f9f9;
}

.field-group h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

/* Eingabefelder */
.form-group {
    margin-bottom: 15px;
}

.form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.form-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Treibstoff-Eingabegruppen */
.fuel-input-group {
    display: flex;
    gap: 10px;
    align-items: center;
}

.fuel-input-group input {
    flex: 1;
    min-width: 200px;
}

.fuel-input-group select {
    width: auto;
    padding: 8px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    margin: 5px 0;
}

.btn-primary {
    background-color: #007bff;
    color: white;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-outline-primary {
    background-color: transparent;
    color: #007bff;
    border: 1px solid #007bff;
}

.btn:hover {
    opacity: 0.9;
}

/* Tabellen */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.table th, .table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table thead th {
    background: #f2f2f2;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.table-bordered, .table-bordered th, .table-bordered td {
    border: 1px solid #ddd;
}

/* Alerts */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Navigation */
.navbar {
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-bottom: 1px solid #ddd;
}

.navbar-nav {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-link {
    padding: 5px 10px;
    color: #333;
    text-decoration: none;
    margin-right: 10px;
}

.nav-link:hover {
    color: #007bff;
}

/* Links */
.link-primary {
    color: #007bff;
    text-decoration: none;
}

.link-primary:hover {
    text-decoration: underline;
}

/* Select2 Stile */
.select2-container {
    width: 100% !important;
    margin-bottom: 15px;
}

.select2-container .select2-selection--single {
    height: 38px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #ddd;
}

/* Logout as POST form in the navigation - button styled to look like the other nav links */
.logout-form {
    display: inline;
    margin: 0;
}

.nav-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: #0000EE;
    text-decoration: underline;
    cursor: pointer;
}
