.course-tabs {
    list-style-type: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-bottom: 1px solid #ccc;
}

.course-tabs li {
    float: left;
}

.course-tabs li a {
    display: inline-block;
    color: black;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: 0.3s;
    font-size: 17px;
}

.course-tabs li a:hover {
    background-color: #ddd;
}

.course-tabs li a:focus, .active {
    background-color: #c0e3e3;
}

.course-tab-content {
    display: none;
    padding: 6px 12px;
    border: 1px solid #ccc;
    border-top: none;
}

.unit-list {
    list-style-type: none;
    padding: 0;
}

.unit-list li {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
}

.unit-list li:nth-child(even) {
    background-color: #ffffff;
}

.unit-list li:hover {
    background-color: #f0f0f0;
}

.unit-header {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.unit-info {
    font-weight: bold;
    margin-right: 10px;
}

.unit-type-label {
    display: inline-block;
    padding: 2px 6px !important;
    border-radius: 3px;
    font-size: 0.65em;
    text-transform: uppercase;
    font-weight: bold;
    line-height: 1.2;
    vertical-align: middle;
    border: none;
    box-sizing: border-box;
    color: #333;
}

.unit-type-label.module { background-color: #c0e3e3;; border: 1px solid #eee !important}
.unit-type-label.hospitation { background-color: #d0e8e8; }
.unit-type-label.supervision { background-color: #e0eded; }
.unit-type-label.intervision { background-color: #f0f2f2; }
.unit-type-label.fallarbeit { background-color: #f8fafa; }
.unit-type-label.praktische_taetigkeit { background-color: #ffffff; border: 1px solid #eee; }

.unit-actions {
    display: flex;
    gap: 10px;
}

.info-button, .certificate-button {
    background-color: #c0e3e3;
    color: #333;
    border: none;
    padding: 5px 10px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 0.8em;
    text-transform: uppercase;
    font-weight: bold;
}

.info-button:hover, .certificate-button:hover {
    background-color: #a0bebe;
}

.popup {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.popup-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80%;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.close-popup {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close-popup:hover {
    color: #333;
}

.popup-inner-content {
    margin-top: 20px;
}

.popup-inner-content h3 {
    margin-top: 0;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.popup-inner-content .unit-type {
    font-style: italic;
    color: #666;
    margin-top: -10px;
    margin-bottom: 20px;
}

.status-item {
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.status-item:last-child {
    border-bottom: none;
}

.status-item h5 {
    margin-top: 0;
    color: #444;
    font-size: 1em;
}

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

.certificate-button {
    background-color: #c0e3e3;
    color: #333;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.certificate-button:hover {
    background-color: #a0bebe;
}

.certificate-button-unactive {
    background-color: #e0e0e0; /* Light gray background */
    color: #666666; /* Darker gray text for contrast */
    border: none;
    padding: 10px 20px;
    cursor: not-allowed; /* Cursor indicates disabled state */
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    opacity: 0.7; /* Slight transparency to indicate inactive state */
}

.certificate-button-unactive:hover {
    background-color: #d0d0d0; /* Slightly darker gray on hover */
    color: #555555; /* Darker text on hover for a slight contrast */
}
