:root {
    --font-family: Arial, sans-serif;
    --font-size: 14px;
    --background-color: #ffffff;
    --button-bg-color: #D3D3D3;
    --button-hover-bg-color: #ccc;
    --button-text-color: #000;
    --input-bg-color: #fff;
    --input-border-color: #ccc;
    --input-focus-border-color: #4CAF50;
    --modal-bg-color: #ffffff;
    --modal-border-color: #888;
    --modal-header-bg-color: #f9f9f9;
    --table-border-color: #ddd;
    --table-header-bg-color: #f9f9f9;
    --table-hover-bg-color: #e6e6e6;
    --table-row-odd-bg-color: #f2f2f2;
    --delete-button-bg-color: #fff;
    --delete-button-hover-bg-color: #f0f0f0;
    --close-modal-btn-color: #888;
    --close-modal-btn-hover-color: red;
    --text-color: #333;
    --header-font-weight: bold;
}

[data-theme="dark"] {
    --background-color: #121212;
    --button-bg-color: #333;
    --button-hover-bg-color: #555;
    --button-text-color: #fff;
    --input-bg-color: #444;
    --input-border-color: #555;
    --input-focus-border-color: #4CAF50;
    --modal-bg-color: #333;
    --modal-border-color: #666;
    --modal-header-bg-color: #222;
    --table-border-color: #444;
    --table-header-bg-color: #444;
    --table-hover-bg-color: #555;
    --table-row-odd-bg-color: #333;
    --delete-button-bg-color: #444;
    --delete-button-hover-bg-color: #555;
    --close-modal-btn-color: #ddd;
    --close-modal-btn-hover-color: red;
    --text-color: #ddd;
    --header-font-weight: bold;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: var(--background-color);
}

select {
    max-width: 50%;
    margin-right: 100%;
    margin-bottom: 5px;
}

.schedule-navigation button,
.schedule-navigation input {
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid var(--input-border-color);
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
    transition: box-shadow 0.3s;
}

.schedule-navigation button {
    background-color: var(--button-bg-color);
    color: var(--button-text-color);
}

.schedule-navigation input {
    width: 200px;
    text-align: center;
}

.schedule-navigation button:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.schedule-table {
    width: 100%;
    margin: 0 auto;
    border-collapse: collapse;
    table-layout: auto;
}

.schedule-table th,
.schedule-table td {
    border: 1px solid var(--table-border-color);
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.schedule-table th {
    font-weight: var(--header-font-weight);
    text-align: center;
    background-color: var(--table-header-bg-color);
}

.schedule-table td:last-child {
    text-align: center;
}

.schedule-table td {
    font-size: var(--font-size);
    word-wrap: break-word;
}

.schedule-table tr:nth-child(odd) {
    background-color: var(--table-row-odd-bg-color);
}

.schedule-table tr:hover {
    background-color: var(--table-hover-bg-color);
}

.schedule-table span.delete-button {
    font-size: 14px;
    cursor: pointer;
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid var(--table-border-color);
    border-radius: 3px;
    font-weight: var(--header-font-weight);
    text-align: center;
    width: 25px;
    height: 25px;
    line-height: 15px;
}

.schedule-table span.delete-button:hover {
    background-color: var(--delete-button-hover-bg-color);
    color: white;
    border-color: #999;
}

.modal-content {
    background-color: var(--modal-bg-color);
    margin: 10% auto;
    padding: 20px;
    width: 40%;
    border: 1px solid var(--modal-border-color);
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: var(--header-font-weight);
}

.modal-content p {
    margin: 10px 0;
    line-height: 1.5;
}

.schedule-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.save-changes-btn {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #28a745;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
}

.save-changes-btn:hover {
    background-color: #218838;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: var(--header-font-weight);
}

select {
    width: 100%;
    padding: 5px;
    margin-top: 5px;
    border: 1px solid var(--input-border-color);
    border-radius: 4px;
    font-size: 1em;
}

#dynamic-schedule-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    text-align: center;
}

.modal-content {
    background-color: var(--modal-bg-color);
    margin: 10% auto;
    padding: 20px;
    border: 1px solid var(--modal-border-color);
    width: 50%;
    border-radius: 8px;
    position: relative;
}

.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--close-modal-btn-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s;
    background-color: var(--modal-bg-color);
    border: none;
}

.close-modal-btn:hover {
    color: var(--close-modal-btn-hover-color);
    text-decoration: none;
    cursor: pointer;
}

.content-container-container {
    border-radius: 10px;
    width: 100%;
    margin: auto;
    overflow: hidden;
}
