/* === Grundlayout === */
body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
}

/* === Navbar === */
.navbar-custom {
    background-color: #e67e22;
    height: 60px;
    padding: 0 30px;
}

.navbar-custom .navbar-brand {
    color: #ffffff;
    font-weight: bold;
    font-size: 24px;
    text-decoration: none;
}

.navbar-custom .navbar-brand:hover {
    color: #f4f4f4;
}

.navbar-custom .nav-link {
    color: #ffffff;
    font-weight: 500;
    font-size: 18px;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.navbar-custom .nav-link:hover {
    color: #f4f4f4;
}

/* === Container für Inhalte === */
.container {
    max-width: 1000px;
    margin: 50px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* === Map Popup Styling === */
.leaflet-popup-content .popup-content {
    min-width: 200px;
}

.leaflet-popup-content .popup-content h6 {
    margin-bottom: 10px;
    color: #e67e22;
    border-bottom: 2px solid #e67e22;
    padding-bottom: 5px;
}

.leaflet-popup-content .popup-details {
    margin-bottom: 10px;
}

.leaflet-popup-content .popup-details > div {
    margin-bottom: 5px;
    font-size: 13px;
}

.leaflet-popup-content .popup-details > div strong {
    color: #2c3e50;
    margin-right: 5px;
}

.leaflet-popup-content .popup-actions {
    text-align: center;
}

.leaflet-popup-content .btn-sm {
    font-size: 11px;
    padding: 4px 8px;
}

/* === Notification Styling === */
#notification-container .alert {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    border-radius: 8px;
}

#notification-container .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

#notification-container .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

#notification-container .alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* === Überschriften === */
h2 {
    text-align: center;
    color: #e67e22;
    margin-bottom: 30px;
}

/* === Formulare === */
form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
}

/* === Buttons === */
.btn, 
button[type="submit"], 
input[type="submit"] {
    background-color: #e67e22;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.btn:hover, 
button[type="submit"]:hover, 
input[type="submit"]:hover {
    background-color: #cf711f;
}

/* === Tabellen === */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
}

th, td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

th {
    background-color: #e67e22;
    color: #ffffff;
}

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

/* === Flash-Nachrichten === */
.flash {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-weight: bold;
}

.flash-success {
    background-color: #d4edda;
    color: #155724;
}

.flash-danger {
    background-color: #f8d7da;
    color: #721c24;
}

.flash-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

/* === Links === */
a {
    color: #e67e22;
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    text-decoration: underline;
    color: #cf711f;
}

/* === Karte === */
#map {
    margin-top: 20px;
    height: 400px;
    border: 2px solid #e67e22;
    border-radius: 8px;
}

/* === Info-Box === */
.info-box {
    margin-top: 40px;
    padding: 20px;
    background-color: #fef9f4;
    border: 1px solid #e67e22;
    border-radius: 12px;
    text-align: center;
    font-size: 14px;
}

.info-box a {
    color: #e67e22;
    font-weight: bold;
    text-decoration: none;
}

.info-box a:hover {
    text-decoration: underline;
}

/* === Dashboard-Boxen === */
.dashboard-container {
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.15);
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    color: #ff6600;
}

.table-wrapper {
    overflow-x: auto;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.report-table th,
.report-table td {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.report-table tr:hover {
    background-color: #fef3e7;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
}

.btn-edit {
    background-color: #ffd6a0;
    color: #000;
    text-decoration: none;
}

.btn-delete {
    background-color: #ffaaaa;
    color: #000;
}

/* === Mobile Navbar Optimierung === */
@media (max-width: 768px) {
  .navbar-collapse {
    position: absolute;
    top: 60px;
    right: 10px;
    width: 80%;
    background-color: white;
    border: 2px solid #e67e22;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
    z-index: 9999;
  }

  .navbar-collapse ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .navbar-collapse a {
    display: block;
    padding: 12px;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    color: #333;
  }

  .navbar-collapse a:hover {
    background-color: #fdf2e9;
  }

  .navbar-collapse .logout-link {
    margin-top: 12px;
    font-weight: bold;
    color: #e74c3c;
  }
}