.mke-events-container {
    margin: 2em 0;
    width: 100%;
    overflow-x: auto;
}

.mke-events-container table {
    width: 100%;
    border-collapse: collapse;
}

.mke-error {
    color: #721c24;
    background-color: #f8d7da;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.mke-notice {
    color: #0c5460;
    background-color: #d1ecf1;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 15px;
}

/* Additional DataTables styling */
#mke-events-table_wrapper .dataTables_length,
#mke-events-table_wrapper .dataTables_filter {
    margin-bottom: 15px;
}

.dataTables_filter {
    width: 100%;
    position: relative;
}

.dataTables_filter input {
    width: 90%;
}

#mke-events-table_wrapper .dataTables_info,
#mke-events-table_wrapper .dataTables_paginate {
    margin-top: 15px;
}

/* General table styles */
#mke-events-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

#mke-events-table th, 
#mke-events-table td {
    padding: 20px 16px !important;
    text-align: left;
    vertical-align: middle;
    line-height: 1.6;
}

/* DataTables overrides for proper spacing */
table.dataTable thead th,
table.dataTable thead td,
table.dataTable tbody th,
table.dataTable tbody td,
table.dataTable tfoot th,
table.dataTable tfoot td {
    padding: 20px 16px !important;
}

/* Focus on td padding for data cells */
table.dataTable tbody td {
    padding: 24px 18px !important;
}

table.dataTable.display tbody tr {
    height: auto !important;
}

/* Extra specific selector to override DataTables defaults */
#mke-events-table.display thead th,
#mke-events-table.display thead td,
#mke-events-table.display tbody th,
#mke-events-table.display tbody td,
#mke-events-table.display tfoot th,
#mke-events-table.display tfoot td {
    padding: 20px 16px !important;
}

/* Even more specific for tbody td */
#mke-events-table.display tbody td {
    padding: 24px 18px !important;
}

/* Status indicator styling */
.mke-status-indicator {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
}

/* Status bubble styling */
.mke-status-bubble {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: help;
}

/* Status colors based on German status values */
.mke-status-planmaessig,
.mke-status-planmäßig,
.mke-status-in-planning,
.mke-status-confirmed {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mke-status-bubble.mke-status-in-planning,
.mke-status-bubble.mke-status-confirmed {
    background-color: #28a745;
}

.mke-status-cancelled,
.mke-status-abgesagt {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mke-status-bubble.mke-status-cancelled {
    background-color: #dc3545;
}

.mke-status-postponed,
.mke-status-verschoben {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.mke-status-bubble.mke-status-postponed {
    background-color: #ffc107;
}

.mke-status-completed,
.mke-status-abgeschlossen {
    background-color: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.mke-status-bubble.mke-status-completed {
    background-color: #17a2b8;
}

.status-indicator {
    display: inline-block;
    margin-right: 0px;
    font-size: 2.5em;
    vertical-align: middle;
    margin-top: -10px;
}

.status-in-planning {
    color: #ffc107; /* Yellow */
}

.status-confirmed {
    color: #28a745; /* Green */
}

.status-cancelled, .status-postponed {
    color: #dc3545; /* Red */
}

.status-completed {
    color: #28a745; /* Green for checkmark */
    font-weight: bold;
}

.status-default {
    color: #6c757d; /* Gray */
}

/* Discipline cell styling */
.discipline-cell {
    text-align: center;
}

/* Country flag styling */
.country-flag {
    vertical-align: middle;
    margin-right: 5px;
    border: 1px solid #ddd;
}

/* Event Info button styling */
.mke-event-info-button {
    display: inline-block;
    padding: 2px 8px;
    margin: 2px;
    background-color: #0073aa;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.9em;
    transition: background-color 0.3s;
    text-align: center;
}

.mke-event-info-button:hover {
    background-color: #005177;
    color: white;
    text-decoration: none;
}

/* Single event details page styling */
.mke-event-details-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.mke-event-title {
    font-size: 2.2em;
    margin-bottom: 15px;
}

.mke-event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f8f8f8;
    border-left: 4px solid #0073aa;
}

.mke-event-location, 
.mke-event-disciplines, 
.mke-event-description, 
.mke-event-notes {
    margin-bottom: 20px;
}

.mke-event-location h3, 
.mke-event-disciplines h3, 
.mke-event-description h3, 
.mke-event-notes h3 {
    border-bottom: 1px solid #eee;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.mke-country-flag {
    margin-right: 10px;
    vertical-align: middle;
}

.mke-event-disciplines ul {
    list-style-type: disc;
    margin-left: 20px;
}

.mke-event-back-button {
    margin-top: 30px;
}

.mke-event-back-button a {
    display: inline-block;
    padding: 8px 15px;
    background-color: #f2f2f2;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.mke-event-back-button a:hover {
    background-color: #e6e6e6;
}

.mke-event-not-found {
    text-align: center;
    padding: 50px 0;
}

/* Sticky header styles */
.fixedHeader-floating {
    background-color: #fff;
    margin-top: 200px;
}

.fixedHeader-floating th {
    border-bottom: 2px solid #ddd;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Add some padding to the top of the table when scrolling to prevent content jumping */
.dataTable.fixedHeader-floating,
.dataTable.fixedHeader-locked {
    margin-top: 0 !important;
}

/* Ensure header cells have proper background when fixed */
.fixedHeader-floating thead th {
    background-color: #f8f8f8;
}

/* Search field clear button styling */
.mke-search-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    font-size: 18px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    border-radius: 50%;
}

.mke-search-clear:hover {
    color: #333;
    background-color: #f0f0f0;
}

/* Mobile table styles */
.mke-events-mobile {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.mke-events-mobile table {
    width: 100%;
}

.mke-mobile-cell {
    padding: 2px !important;
    font-size: 0.90em !important;
}

.mke-mobile-cell img {
   margin: 0 !important;
}

.mke-mobile-cell p, .mke-mobile-cell {
    line-height: 1.1em;
}

#mke-events-table-mobile_wrapper .dataTables_length,
#mke-events-table-mobile_wrapper .dataTables_filter,
#mke-events-table-mobile_wrapper .dataTables_info,
#mke-events-table-mobile_wrapper .dataTables_paginate {
    font-size: 0.8em;
}

#mke-events-table-mobile_filter input {
    width: 80%;
    padding: 2px;
}

/* Additional mobile optimization */
.mke-events-mobile .dataTables_filter {
    margin-bottom: 5px;
}

.mke-events-mobile .mke-search-clear {
    right: 5px;
}

