
/* Test Style - Should make all status text bold if CSS is loading */
.status-cell {
    font-weight: bold !important;
}

/* Tabellen-Stile */
.rides-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

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

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

/* Status-Stile */
.status-cell {
    font-weight: 500;
    text-align: center;
    padding: 2px 0;
    display: inline-block;
    min-width: 80px;
}

.status-puenktlich {
    color: #30a030; /* Green for on time */
}

.status-verspaetet {
    color: #cf3030; /* Red for delayed */
}

.status-abgefahren {
    color: #6c757d; /* Gray for departed */
}

.status-ausgefallen {
    color: #d32f2f; /* Darker red for cancelled */
    text-decoration: line-through;
}

/* Datetime Container */
.datetime-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
    overflow: hidden;
    border: 1px solid #e1e4e8;
}

/* Clock Section */
.datetime-clock {
    background: linear-gradient(135deg, #5ca1ad 0%, #7e8dbe 100%);
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.clock-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.time-display {
    display: flex;
    flex-direction: column;
}

#liveDate {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

#liveTime {
    font-size: 2rem;
    font-weight: 600;
    font-family: 'Roboto Mono', monospace;
    letter-spacing: 1px;
}

#liveTime .seconds {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-left: 2px;
}

/* Form Controls */
.datetime-controls {
    padding: 20px;
    background: #ffffff;
}

.datetime-form {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.form-group {
    flex: 1;
    min-width: 150px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 6px;
    font-weight: 500;
}

input[type="date"], 
input[type="time"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    color: #1a202c;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

input[type="date"]:focus, 
input[type="time"]:focus {
    outline: none;
    border-color: #5ca1ad;
    box-shadow: 0 0 0 3px rgba(92, 161, 173, 0.2);
}

.submit-btn {
    background: #5ca1ad;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    height: 42px;
}

.submit-btn:hover {
    background: #4c8a96;
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-group {
        width: 100%;
    }
    
    .submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    .datetime-clock {
        padding: 15px;
    }
    
    .clock-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
    
    #liveTime {
        font-size: 1.7rem;
    }
}

.no-trains {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.alert-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 0 4px 4px 0;
}

.alert-box ul {
    margin: 5px 0 0 0;
    padding-left: 20px;
}

.alert-box li {
    margin-bottom: 5px;
}

/* Form and Table Actions */
.fahrplan-form {
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.scrollingTable {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Table styles */
table.rides-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 auto;
}

table.rides-table th,
table.rides-table td {
    padding: 12px 15px;
    text-align: center !important;
    border-bottom: 1px solid #e0e0e0;
}

table.rides-table th {
    background-color: #f5f5f5;
    font-weight: 600;
    color: #333;
    text-align: center !important;
}

table.rides-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* Status cells */
.status-cell {
    font-weight: 500;
}

.table-actions {
    width: 100%;
    text-align: center;
    margin: 2rem 0 1rem;
    padding: 1rem 0;
    clear: both;
}

.update-form {
    display: inline-block !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.table-actions .primary-secondary-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    background: #5ca1ad !important;
    color: white !important;
    border: none !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    min-width: 200px !important;
    margin: 0 auto !important;
}

.table-actions .primary-secondary-button:hover {
    background: #4c8a96;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.table-actions .primary-secondary-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Dark Mode Styles */
[data-theme="dark"] .datetime-container {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .form-group label {
    color: #e2e8f0;
}

[data-theme="dark"] .form-group i {
    color: #a0aec0;
}

[data-theme="dark"] input[type="date"],
[data-theme="dark"] input[type="time"] {
    background-color: #1a202c;
    border-color: #4a5568;
    color: #e2e8f0;
}

[data-theme="dark"] .clock-container {
    background: #2d3748;
    border-color: #4a5568;
}

[data-theme="dark"] .clock-container #liveDate {
    color: #e2e8f0;
}

[data-theme="dark"] .clock-container #liveTime {
    color: #e2e8f0;
}

[data-theme="dark"] .clock-container .seconds {
    color: #a0aec0;
}

/* Dark mode styles for alerts */
[data-theme="dark"] .alert-box {
    background-color: #332d1f;
    border-left-color: #ffd54f;
}

/* Allgemeine Tabellenstile für Abwärtskompatibilität */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

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

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

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

/* Layout-Stile */
.centered-title {
    text-align: center;
    margin-bottom: 20px;
}

.button-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.navigation-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.fahrplan-updates {
    margin-top: 20px;
}

/* Fahrplan spezifische Stile */
.main-wrapper {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px;
    margin-top: 20px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.form-box {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 40px;
}
.scrollingTable {
    overflow-x: auto;
    overflow-y: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    max-height: 300px;
    background-color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.info-box {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.info-box p {
    margin: 8px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-box {
        padding: 20px;
    }

    .rides-table {
        font-size: 14px;
    }

    .centered-title {
        font-size: 1.5rem;
    }

    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .navigation-buttons button {
        width: 100%;
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

@media (max-width: 600px) {
    .form-box {
        padding: 15px;
        border-radius: 8px;
    }

    .info-box {
        padding: 15px;
    }

    .rides-table {
        font-size: 12px;
    }

    .rides-table th,
    .rides-table td {
        padding: 8px 5px;
    }

    .primary-secondary-button {
        padding: 10px 20px;
        font-size: 14px;
    }
}
