.tmc-pp-start-course-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 36px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    background-color: #fff;
    color: #000;
}

.tmc-pp-start-course-btn:hover {
    opacity: 0.9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.tmc-pp-progress-div {
    margin-top: 10px;
    position: relative;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: fadeSlideIn 0.4s ease forwards;
}

.tmc-pp-progress-div .progress-content-wrapper {
    padding: 10px;
    width: -webkit-fill-available;
    font-weight: 500;

    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}
.tmc-pp-progress-div .tmc-total,
.tmc-pp-progress-div .tmc-watched,
.tmc-pp-progress-div .tmc-duration {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    height: 20px;
    grid-column: span 3;

    width: fit-content;
    background-color: rgba(255, 255, 255, 0.1);
    color: #f1f1f1;
    padding: 6px 12px;
    border-radius: 8px;
}
.tmc-pp-progress-div .tmc-actions {
    border-radius: 8px 0px 8px 0;
    border-width: 1px 0px 0px 1px;
    border-style: solid;
    border-color: rgba(255, 255, 255, 0.2);
    color: #f1f1f1;
    background-color: rgba(255, 255, 255, 0.1);
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tmc-pp-progress-div .tmc-actions > * {
    padding: 4px 6px;
}
.tmc-pp-progress-div .tmc-actions > *:hover {
    background-color: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.tmc-pp-progress-div .tmc-actions > * + * {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.tmc-pp-progress-div .tmc-delete-popup {
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tmc-progress-div.deleting .tmc-delete-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tmc-progress-div.deleting .progress-content-wrapper {
    opacity: 0;
    pointer-events: none;
}

.tmc-pp-progress-div .tmc-delete-popup p {
    color: #f1f1f1;
    font-size: 16px;
    text-align: center;
}
.tmc-pp-progress-div .tmc-delete-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}
.tmc-pp-progress-div .tmc-delete-buttons button {
    padding: 4px 14px;
    border: 1px solid #88888833;
    border-radius: 14px;
    font-size: 14px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}
.tmc-pp-progress-div .tmc-delete-buttons button:hover {
    opacity: 0.8;
}
.tmc-pp-progress-div .tmc-confirm-delete {
    background-color: #31313199;
    color: #f1f1f1;
}
.tmc-pp-progress-div .tmc-cancel-delete {
    background-color: #eee;
    color: #0f0f0f;
}
.tmc-refresh > svg.rotating {
    animation: rotate 0.4s linear;
}
.tmc-refresh > svg.scanning {
    animation: rotate 1s linear infinite;
}

.tmc-scanning-playlist {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    backdrop-filter: blur(4px) saturate(180%);
    -webkit-backdrop-filter: blur(4px) saturate(180%);
    background-color: rgba(51, 51, 51, 0.75);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.125);
}

.tmc-scanning-text {
    position: fixed;
    top: 50vh;
    transform: translateX(-50%);
    color: #f1f1f1;
    font-size: 24px;
    font-family:
        Youtube Sans,
        sans-serif;
    font-weight: 500;
    text-align: center;
    z-index: 1001;
}
.tmc-scanning-text p {
    font-weight: 400;
    font-size: 16px;
}

.tmc-pp-checkbox-wrapper {
    width: 40px;
    height: 40px;
}

/* youtube elements styling */
ytd-item-section-renderer.style-scope.ytd-section-list-renderer #contents {
    position: relative;
}
#menu.style-scope.ytd-playlist-video-renderer {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row-reverse;
}

@keyframes fadeSlideIn {
    from {
        transform: translateY(10px);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}
