
.video-settings-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8); /* Adjust opacity as needed */
    z-index: 99; /* Just below .video-settings */
    display: none;
}

.video-settings-overlay.show {
    display: block;
}

.video-settings {
    --video-settings-padding: var(--spacing-xs);

    width: 100%;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    bottom: 0;
    position: absolute;
    z-index: 100;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--bghigh-shadow-light);
    padding: var(--spacing-base) var(--spacing-sm);
    background-color: #fff;
}

.settings-header h2 {
    font-size: 18px;
    font-family: DailySans, Arial, sans-serif;
    font-weight: 700;
    font-style: normal;
    line-height: 24px;
    margin: 0;
    color: var(--grey-14);
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.settings-content {
    padding-inline: var(--spacing-sm);
    padding-bottom: 52px;
    height: 52vh;
    overflow-y: auto;
    display: block;
}

.settings-section {
    margin-block: var(--spacing-md);
}

.settings-section h3 {
    font-size: 16px;
    line-height: 24px;
    font-weight: bold;
    margin-bottom: var(--spacing-sm);
    font-family: DailySans, Arial, sans-serif;
    text-transform: capitalize;
    display: flex;
    gap: var(--spacing-lg);
}
.settings-content .switch {
    height: 24px;
}

.preview-heading {
    font-size: 14px;
    display: block;
    margin-bottom: var(--spacing-sm);
    font-family: "ABC Favorit", Arial, sans-serif;
    font-weight: 700;
}

.video-preview-settings {
    background: #f5f5f5;
    padding: 8px;
    border-radius: 8px;
    font-weight: normal;
    aspect-ratio: 16/9;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.video-preview img {
    width: 100%;
    border-radius: 8px;
}

.preview-title {
    font-size: 14px;
    font-weight: 700;
    font-family: "ABC Favorit", Arial, sans-serif;
}

.player-id-select, .video-heading-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 8px;
}

.toggle-group {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 8px;
}

/* Custom toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: .4s;
}

.switch-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.toggle-switch input:checked + .switch-slider {
    background-color: #6c5ce7; /* purple */
}

.toggle-switch input:checked + .switch-slider::before {
    transform: translateX(20px);
}

hr.form-line {
    border: none;
    border-top: 1px solid #eee;
}

.settings-footer {
    text-align: center;
    margin-top: 24px;
}

.update-button {
    max-width: 100%;
    width: 157px;
    padding: 10px;
    background: #111;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

.update-button:hover {
    background: #333;
}