body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    flex-direction: column; /* Für Footer am Boden */
}

.container {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px; /* Für Login-Formular */
}

.dashboard-container {
    max-width: 90%; /* Nutzt 90% der verfügbaren Breite */
    text-align: left;
    margin-left: auto;
    margin-right: auto;
}


h1, h2 {
    color: #555;
    text-align: center;
}

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

input[type="text"],
input[type="password"],
input[type="email"] {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
}

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

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    margin-bottom: 15px;
    text-align: center;
}

nav {
    background-color: #333;
    padding: 10px 0;
    text-align: center;
    width: 100%;
    margin-bottom: 20px;
}
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}
nav ul li {
    display: inline;
    margin-right: 20px;
}
nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav ul li a:hover {
    text-decoration: underline;
}

.admin-footer {
    margin-top: auto; /* Drückt Footer nach unten */
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
    color: #777;
    width: 100%;
    background-color: #e9e9e9;
}

table.statistics-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

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

table.statistics-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    color: #333;
}

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

table.statistics-table tr:hover {
    background-color: #f1f1f1;
}

.stats-section {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #eee;
}

.stats-section h3 {
    margin-top: 0;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    color: #0056b3;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

.dashboard-tile {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    border: 1px solid #eee;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.dashboard-tile h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.2em;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.dashboard-tile .stat-value {
    font-size: 2em;
    font-weight: bold;
    color: #333;
    display: block;
    text-align: center;
    margin-bottom: 10px;
}

.dashboard-tile .stat-label {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    display: block;
}

.dashboard-tile ul {
    list-style-type: none;
    padding-left: 0;
}

.dashboard-tile ul li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
}

.dashboard-tile ul li:last-child {
    border-bottom: none;
}

.dashboard-tile .query {
    font-weight: bold;
}

.dashboard-tile .count {
    float: right;
    color: #007bff;
}

/* Dashboard styling */
.dashboard-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.dashboard-header {
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 28px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.dashboard-subtitle {
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.dashboard-update-time {
    font-size: 12px;
    color: #95a5a6;
}

/* Metrics Section */
.metrics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: space-between;
}

.metric-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    flex: 1;
    min-width: 170px;
    display: flex;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #3498db;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.metric-card.highlight {
    border-left-color: #e74c3c;
}

.metric-icon {
    font-size: 24px;
    color: #3498db;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.highlight .metric-icon {
    color: #e74c3c;
}

.metric-content {
    flex: 1;
}

.metric-card h3 {
    font-size: 14px;
    margin: 0 0 10px 0;
    color: #7f8c8d;
    font-weight: normal;
}

.metric-value {
    font-size: 28px;
    font-weight: bold;
    margin: 0;
    color: #2c3e50;
}

.metric-label {
    font-size: 12px;
    color: #95a5a6;
    margin: 5px 0 0 0;
}

/* Main Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow: hidden;
}

.dashboard-card.wide {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Chart Containers */
.chart-container {
    height: 250px;
    position: relative;
}

/* Top Searches List */
.search-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.search-list li {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.search-list li:last-child {
    border-bottom: none;
}

.search-query {
    font-weight: 500;
    color: #34495e;
}

.search-count {
    background-color: #3498db;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
}

/* API Performance */
.performance-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.perf-stat {
    text-align: center;
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 6px;
    flex: 1;
    margin: 0 5px;
}

.perf-label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.perf-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

/* Cache Stats */
.cache-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    margin-bottom: 20px;
}

.cache-stat {
    text-align: center;
}

.cache-label {
    display: block;
    font-size: 12px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

.cache-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
    color: #2c3e50;
}

.cache-actions {
    text-align: center;
    margin-top: 15px;
}

.cache-action-btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s;
}

.cache-action-btn:hover {
    background-color: #2980b9;
}

/* Recent Searches Table */
.recent-searches-table {
    width: 100%;
    border-collapse: collapse;
}

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

.recent-searches-table th {
    background-color: #f9f9f9;
    color: #7f8c8d;
    font-weight: 500;
}

.recent-searches-table tr:hover {
    background-color: #f9f9f9;
}

/* No Data Message */
.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
}

/* Quick Access */
.quick-access-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.quick-access-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 20px;
    text-decoration: none;
    color: #2c3e50;
    transition: transform 0.2s, background-color 0.2s;
}

.quick-access-item:hover {
    background-color: #ecf0f1;
    transform: translateY(-5px);
}

.quick-access-item i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #3498db;
}

.quick-access-item span {
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-container {
        flex-direction: column;
    }
    
    .metric-card {
        width: 100%;
    }
    
    .performance-stats,
    .cache-stats {
        flex-direction: column;
    }
    
    .perf-stat,
    .cache-stat {
        margin: 5px 0;
    }
    
    .quick-access-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Statistics Styling */
.statistics-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.statistics-header {
    margin-bottom: 25px;
}

.statistics-header h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
    text-align: center;
}

/* Filter Bereich */
.stats-filter {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 25px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.period-filter-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group label {
    font-weight: bold;
    color: #555;
}

.filter-group select,
.filter-group input {
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.filter-btn {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.filter-btn:hover {
    background-color: #2980b9;
}

/* Zusammenfassung Cards */
.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
    justify-content: space-between;
}

.summary-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    flex: 1;
    min-width: 150px;
    display: flex;
    align-items: center;
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid #3498db;
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.summary-icon {
    font-size: 24px;
    color: #3498db;
    margin-right: 15px;
    display: flex;
    align-items: center;
}

.summary-content {
    flex: 1;
}

.summary-content h3 {
    font-size: 14px;
    margin: 0 0 5px 0;
    color: #7f8c8d;
    font-weight: normal;
}

.summary-value {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    color: #2c3e50;
}

/* Statistik Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stats-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px;
    overflow: hidden;
}

.stats-card.wide {
    grid-column: 1 / -1;
}

.stats-card h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 18px;
    border-bottom: 1px solid #ecf0f1;
    padding-bottom: 10px;
}

/* Chart Container */
.chart-container {
    height: 300px;
    position: relative;
}

/* Tabellen */
.stats-table {
    width: 100%;
    border-collapse: collapse;
}

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

.stats-table th {
    background-color: #f9f9f9;
    color: #7f8c8d;
    font-weight: 500;
}

.stats-table tr:hover {
    background-color: #f5f5f5;
}

/* Scrollbare Bereiche */
.scrollable-content {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ecf0f1;
    border-radius: 4px;
}

/* Keine Daten Nachricht */
.no-data {
    text-align: center;
    color: #7f8c8d;
    padding: 20px;
    font-style: italic;
    background-color: #f9f9f9;
    border-radius: 4px;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-summary {
        flex-direction: column;
    }
    
    .summary-card {
        width: 100%;
    }
    
    .period-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group label {
        margin-bottom: 5px;
    }
}

/* Kleine Bildschirme */
@media (max-width: 480px) {
    .stats-card {
        padding: 15px;
    }
    
    .chart-container {
        height: 250px;
    }
}

/* Styles für die Tabelle der letzten Suchanfragen */
.recent-searches-container {
    overflow-x: auto;
    margin-bottom: 20px;
}

.recent-searches-table {
    width: 100%;
    min-width: 800px; /* Mindestbreite, um horizontales Scrollen zu ermöglichen */
}

.recent-searches-table th,
.recent-searches-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #ecf0f1;
    white-space: nowrap; /* Verhindert Zeilenumbrüche */
}

.recent-searches-table th {
    background-color: #f9f9f9;
    color: #7f8c8d;
    font-weight: 500;
    position: sticky;
    top: 0;
    z-index: 10;
}

.recent-searches-table tbody tr:hover {
    background-color: #f5f5f5;
}

.recent-searches-table td:first-child {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Paginierung */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
}

.pagination-info {
    color: #7f8c8d;
    font-size: 14px;
}

.pagination-links {
    display: flex;
    gap: 5px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 4px;
    background-color: #fff;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    transition: all 0.2s;
}

.pagination-link:hover {
    background-color: #f1f1f1;
    border-color: #ccc;
}

.pagination-link.active {
    background-color: #3498db;
    border-color: #3498db;
    color: white;
}

.pagination-link.first,
.pagination-link.prev,
.pagination-link.next,
.pagination-link.last {
    font-size: 12px;
}

/* Responsive Anpassung */
@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Cache-Statistiken */
.cache-chart-container {
    height: 200px;
    margin-bottom: 15px;
}

.cache-stats-info {
    padding: 15px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.cache-hit-rate {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.cache-hit-rate-label {
    font-size: 14px;
    color: #7f8c8d;
    display: block;
    margin-bottom: 5px;
}

.cache-hit-rate-value {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

.cache-details {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cache-detail {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cache-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.cache-dot.new {
    background-color: #e74c3c; /* Rot für neue Anfragen */
}

.cache-dot.cached {
    background-color: #2ecc71; /* Grün für gecachte Anfragen */
}

.cache-label {
    flex: 1;
    font-size: 14px;
    color: #7f8c8d;
}

.cache-value {
    font-weight: bold;
    color: #2c3e50;
}

/* Styles für die Einstellungsseite */
.settings-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.settings-header {
    margin-bottom: 25px;
}

.settings-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.settings-feedback {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-feedback.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.settings-feedback.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.settings-feedback.info-message {
    background-color: #e2f0f7;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.settings-feedback i {
    font-size: 18px;
}

.settings-tips {
    padding: 12px 15px;
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    color: #856404;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-tips i {
    font-size: 18px;
    color: #ffc107;
}

/* Layout für Inhalt mit Sidebar */
.settings-content {
    display: flex;
    gap: 20px;
    margin-top: 25px;
}

.settings-sidebar {
    width: 280px;
    flex-shrink: 0;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.settings-main {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

/* Sidebar Styles */
.settings-filter-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.settings-filter-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2c3e50;
}

.settings-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.settings-filter-list li {
    border-bottom: 1px solid #eee;
}

.settings-filter-list li:last-child {
    border-bottom: none;
}

.settings-filter-list a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s;
}

.settings-filter-list a i {
    width: 20px;
    margin-right: 10px;
    text-align: center;
    color: #7f8c8d;
}

.settings-filter-list a span {
    flex: 1;
}

.settings-filter-list .settings-count {
    padding: 2px 6px;
    background-color: #f0f0f0;
    border-radius: 10px;
    font-size: 12px;
    color: #7f8c8d;
    margin-left: 5px;
}

.settings-filter-list li.active a {
    background-color: #3498db;
    color: white;
}

.settings-filter-list li.active a i,
.settings-filter-list li.active .settings-count {
    color: white;
}

.settings-filter-list li:not(.active) a:hover {
    background-color: #f5f5f5;
}

/* Main Content Styles */
.settings-main-header {
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-main-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
}

.settings-main-header h3 i {
    margin-right: 10px;
    color: #3498db;
}

.settings-main-header .settings-count {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: normal;
    margin-left: 5px;
}

.settings-search {
    position: relative;
    width: 280px;
}

.settings-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.settings-search input:focus {
    border-color: #3498db;
}

.settings-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.settings-list {
    padding: 20px;
}

.setting-item {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media (min-width: 768px) {
    .setting-item {
        flex-direction: row;
    }
}

.setting-info {
    flex: 2;
}

.setting-key {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.setting-key label {
    font-weight: bold;
    color: #2c3e50;
    margin-right: 10px;
}

.setting-group-badge {
    background-color: #e9ecef;
    color: #6c757d;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.setting-description {
    color: #7f8c8d;
    font-size: 14px;
}

.setting-value {
    flex: 1;
    display: flex;
    align-items: center;
}

.setting-input,
.setting-textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    transition: border-color 0.2s;
}

.setting-textarea {
    min-height: 100px;
    resize: vertical;
}

.setting-input:focus,
.setting-textarea:focus {
    border-color: #3498db;
    outline: none;
}

.setting-input.readonly,
.setting-textarea[readonly] {
    background-color: #f0f0f0;
    border-color: #ddd;
    color: #6c757d;
    cursor: not-allowed;
}

/* Toggle Switch für Boolean Werte */
.toggle-switch-container {
    display: flex;
    align-items: center;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2ecc71;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2ecc71;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

.hidden-false-value {
    display: none;
}

/* Aktionen */
.settings-actions {
    padding: 20px;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.settings-save-btn,
.settings-reset-btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.settings-save-btn {
    background-color: #3498db;
    color: white;
    flex: 2;
}

.settings-save-btn:hover {
    background-color: #2980b9;
}

.settings-reset-btn {
    background-color: #f0f0f0;
    color: #333;
    flex: 1;
}

.settings-reset-btn:hover {
    background-color: #e0e0e0;
}

/* Meldung wenn keine Einstellungen gefunden wurden */
.no-settings-message {
    padding: 30px;
    text-align: center;
    color: #7f8c8d;
}

.no-settings-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #95a5a6;
    display: block;
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
    .settings-content {
        flex-direction: column;
    }
    
    .settings-sidebar {
        width: 100%;
    }
    
    .settings-filter-list {
        display: flex;
        flex-wrap: wrap;
    }
    
    .settings-filter-list li {
        border: none;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    
    .settings-filter-list a {
        padding: 8px 12px;
        border-radius: 20px;
        background-color: #f0f0f0;
    }
    
    .settings-filter-list li.active a {
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .settings-main-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .settings-search {
        width: 100%;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-save-btn,
    .settings-reset-btn {
        width: 100%;
    }
}

/* Styles für Rate Limits Verwaltung */
.ratelimits-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.ratelimits-header {
    margin-bottom: 25px;
}

.ratelimits-header h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #2c3e50;
    text-align: center;
}

.ratelimits-feedback {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ratelimits-feedback.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ratelimits-feedback.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.ratelimits-feedback i {
    font-size: 18px;
}

.ratelimits-info {
    padding: 12px 15px;
    background-color: #e2f0f7;
    border-left: 4px solid #3498db;
    color: #0c5460;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ratelimits-info i {
    font-size: 18px;
    color: #3498db;
}

/* Layout für Zwei-Spalten-Darstellung */
.ratelimits-content {
    display: grid;
    grid-template-columns: minmax(300px, 1fr) 2fr;
    gap: 20px;
    margin-top: 25px;
}

@media (max-width: 992px) {
    .ratelimits-content {
        grid-template-columns: 1fr;
    }
}

/* Formular-Container */
.ratelimits-form-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.ratelimits-form-container.editing {
    border-left: 4px solid #f39c12;
}

.ratelimits-form-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
}

.ratelimits-form-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ratelimits-form-header h3 i {
    color: #3498db;
}

.ratelimits-form-container.editing .ratelimits-form-header h3 i {
    color: #f39c12;
}

/* Formular-Styles */
.ratelimits-form {
    padding: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #2c3e50;
}

.form-help {
    margin-top: 5px;
    font-size: 13px;
    color: #7f8c8d;
}

.form-help code {
    background-color: #f0f0f0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    color: #e74c3c;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 80px;
    resize: vertical;
}

/* Toggle Switch Styles */
.toggle-group {
    display: flex;
    align-items: center;
}

.toggle-label {
    margin-right: 15px !important;
    margin-bottom: 0 !important;
}

.toggle-switch-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background-color: #2ecc71;
}

input:focus + .toggle-slider {
    box-shadow: 0 0 1px #2ecc71;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

.toggle-status {
    font-weight: 500;
    color: #7f8c8d;
}

/* Formular-Aktionen */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.btn {
    padding: 10px 20px;
    border-radius: 4px;
    border: none;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn:hover {
    background-color: #e0e0e0;
}

.btn.primary-btn {
    background-color: #3498db;
    color: white;
}

.btn.primary-btn:hover {
    background-color: #2980b9;
}

/* Tabellen-Container */
.ratelimits-table-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.ratelimits-table-header {
    padding: 15px;
    background-color: #f9f9f9;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ratelimits-table-header h3 {
    margin: 0;
    font-size: 18px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ratelimits-table-header h3 i {
    color: #3498db;
}

.count-badge {
    display: inline-block;
    padding: 2px 8px;
    background-color: #3498db;
    color: white;
    border-radius: 12px;
    font-size: 12px;
    font-weight: normal;
    margin-left: 10px;
}

.ratelimits-search {
    position: relative;
    width: 250px;
}

.ratelimits-search input {
    width: 100%;
    padding: 8px 12px 8px 36px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    transition: border-color 0.2s;
}

.ratelimits-search input:focus {
    border-color: #3498db;
}

.ratelimits-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

/* Tabellen-Styles */
.ratelimits-table-wrapper {
    overflow-x: auto;
}

.ratelimits-table {
    width: 100%;
    border-collapse: collapse;
}

.ratelimits-table th,
.ratelimits-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.ratelimits-table th {
    background-color: #f0f0f0;
    color: #7f8c8d;
    font-weight: 600;
    white-space: nowrap;
}

.ratelimits-table tbody tr:hover {
    background-color: #f8f9fa;
}

.limit-name {
    font-weight: 500;
    color: #2c3e50;
}

.limit-rate {
    color: #e74c3c;
    font-weight: 500;
}

.status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d4edda;
    color: #155724;
}

.status-badge.inactive {
    background-color: #f8d7da;
    color: #721c24;
}

.limit-description {
    position: relative;
    max-width: 200px;
}

.description-preview {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #7f8c8d;
}

.description-tooltip {
    display: none;
    position: absolute;
    top: -5px;
    left: 0;
    background-color: #2c3e50;
    color: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 250px;
    z-index: 1000;
    white-space: normal;
}

.limit-description:hover .description-tooltip {
    display: block;
}

.no-description {
    color: #bdc3c7;
    font-style: italic;
}

/* Action Buttons */
.limit-actions {
    white-space: nowrap;
}

.action-buttons {
    display: flex;
    gap: 5px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    border: none;
    color: white;
    text-decoration: none;
    transition: all 0.2s;
}

.action-btn.edit-btn {
    background-color: #3498db;
}

.action-btn.edit-btn:hover {
    background-color: #2980b9;
}

.action-btn.delete-btn {
    background-color: #e74c3c;
}

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

/* No Data Message */
.no-data-message {
    padding: 30px;
    text-align: center;
    color: #7f8c8d;
}

.no-data-message i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #95a5a6;
    display: block;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .ratelimits-table-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .ratelimits-search {
        width: 100%;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}
