:root {
    --main: #6e285f;
    --bg-top-raw: 110 40 95;
    --main-box-shadow: rgb(from var(--main) r g b / 0.05);
    --accent: #737444;
    --paddingSite: 40px;
    --card-radius: 20px;
    --card-bg: #ffffff;
    --bg: #FDFDFD;
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --accent-soft: #f0f5ff;
    --border-subtle: #d4d7e1;
    --text-main: #191919;
    --text-muted: #5e5e5e;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body,
section {
    margin: 0;
    overscroll-behavior: none;
}

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text-main);
}

.bgSection {
    padding: var(--paddingSite);
}

.headerDivTrainer {
    padding: var(--paddingSite);
    background-color: var(--main);
    color: var(--bg);
    margin-bottom: var(--paddingSite);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.headingPanel {
    margin: 0;
    font-weight: 200;
}

.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-bottom: var(--paddingSite);
    flex-wrap: wrap;
}

.controls-wrapper>div,
.controls-wrapper>form {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-wrap: wrap;
}

/* From Trainer Dashboard - newBtn style */
button.change-type,
button[type="submit"] {
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
    padding: 10px 24px;
    border-radius: 100px;
    background: #cfef00;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    font-size: 15px;
    color: #000;
}

button.change-type:hover,
button[type="submit"]:hover {
    background: #c5e300;
    transform: translateY(-1px);
}

button.change-type:active,
button[type="submit"]:active {
    transform: scale(0.95);
}

.change-type-form {
    display: flex;
    align-items: center;
}

.change-type-form textarea {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: #fff;
    font-size: 15px;
    width: 250px;
    outline: none;
    transition: border-color 0.2s;
}

.change-type-form textarea:focus {
    border-color: var(--main);
}

.iframe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.iframeWithTitle {
    background: #000;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--card-shadow);
}

@media (max-width: 500px) {
    :root {
        --paddingSite: 20px;
    }

    .iframeWithTitle {
        max-width: calc(100vw - 2 * var(--paddingSite));
    }

}

.iframeWithTitle h1 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 400;
}

iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 15px;
    background: #222;
}

.divSucsess {
    display: flex;
    opacity: 0;
    position: fixed;
    top: 20px;
    right: 20px;
    transform: translateX(400px);
    background-color: #ffffff;
    z-index: 10000;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid #4ade80;
    padding-right: 20px;
}

.divSucsess.show {
    opacity: 1;
    transform: translateX(0);
}

.textSucsess {
    color: #137333;
    margin: 15px;
    font-weight: 600;
    font-size: 14px;
}