/* ---------- Root Variables ---------- */
:root {
    /* Brand Colors */
    --brand-primary: #2e54bd;
    --brand-accent: #f8892e;
    --brand-hover: #213d8a;
    --brand-secondary: #ffefe8;

    /* Core */
    --white: #ffffff;
    --text: #333;
    --text-light: #555;
    --border: #e0e0e0;
    --bg-hover: #f3f6ff;
    --font-main: "Poppins", sans-serif;
}

.close-btn {
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: var(--white);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    cursor: pointer;
    border: 1.5px solid var(--border);
    transition: 0.25s;
    color: var(--brand-primary);
    font-size: 18px;


    &:hover {
        i {
            color: var(--white);
        }

        background: var(--brand-accent);
        box-shadow: 0 0 5px rgba(63, 81, 181, 0.3);
    }

    &:active {
        transform: scale(.95);
    }
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-family: var(--font-main);

    h3 {
        font-size: 22px;
        font-weight: 600;
        color: var(--brand-accent);
    }

    .right {
        display: flex;
        align-items: center;
        gap: 15px;

        .addcourse {
            padding: 9px 18px;
            background: var(--brand-primary);
            color: var(--white);
            border-radius: 30px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            border: 1px solid var(--brand-primary);
            transition: 0.3s ease;

            i {
                font-size: 16px;
            }

            &:hover {
                background: var(--brand-accent);
                border-color: var(--brand-secondary);
            }
        }

        .search-wrapper {
            position: relative;

            .search-icon {
                position: absolute;
                left: 10px;
                top: 50%;
                transform: translateY(-50%);
                color: var(--brand-primary);
                pointer-events: none;

            }

            input {
                padding: 9px 12px 9px 36px;
                border: 1px solid var(--brand-primary);
                border-radius: 30px;
                font-size: 14px;
                outline: none;
                transition: 0.25s ease;
                color: var(--text);

                &::placeholder {
                    color: var(--text-light);
                }

                &:focus {
                    border-color: var(--brand-accent);
                    box-shadow: 0 0 4px rgba(46, 84, 189, 0.3);
                }
            }
        }
    }
}

.table-section {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-main);
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

    thead {
        background: var(--brand-primary);
        color: var(--white);

        th {
            padding: 12px 15px;
            text-align: left;
            font-weight: 600;
            font-size: 14px;
        }
    }

    tbody {
        td {
            padding: 10px 15px;
            font-size: 14px;
            color: var(--text);
            border-bottom: 1px solid var(--border);
            vertical-align: middle;
        }

        tr:nth-child(even) {
            background: var(--brand-secondary);
        }

        tr:hover {
            background: var(--bg-hover);
        }



    }
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;

    .action {
        width: 30px;
        height: 30px;
        border-radius: 6px;
        border: none;
        background: var(--brand-primary);
        color: var(--brand-primary);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        cursor: pointer;
        font-size: 13px;
        transition: 0.3s ease;

        i {
            pointer-events: none;
        }

        &:hover {
            transform: scale(1.1);

            i {
                color: var(--white);
            }
        }

        .tooltip {
            position: absolute;
            bottom: 140%;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: #fff;
            padding: 6px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: 500;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, bottom 0.3s ease;
            z-index: 999;
        }

        &:hover .tooltip {
            opacity: 1;
            bottom: 120%;
        }

        &.update {
            background: #d1ffd2;
            color: var(#3e8e41);

            &:hover {
                background: #3e8e41;
            }
        }

        &.view {
            background: #d1eaff;
            color: #1976d2;

            &:hover {
                background: #1976d2;
            }
        }

        &.upload {
            background: #fcecd5;
            color: #e68900;

            &:hover {
                background: #e68900;
            }
        }

        &.students {
            background: #f9d8ff;
            color: #7b1fa2;

            &:hover {
                background: #7b1fa2;
            }
        }

        &.delete {
            background: #ffd8d5;
            color: red;

            &:hover {
                background: #d32f2f;
            }
        }
    }

    /* small arrow under tooltip */
    .action .tooltip::after {
        content: "";
        position: absolute;
        top: 100%;
        left: 50%;
        transform: translateX(-50%);
        border-width: 5px;
        border-style: solid;
        border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
        /* match tooltip */
    }
}

.pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-family: var(--font-main);

    .page-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 6px 14px;
        border-radius: 6px;
        border: none;
        cursor: pointer;
        background: var(--brand-primary);
        color: var(--white);
        font-size: 14px;
        font-weight: 500;
        transition: 0.3s ease;

        i {
            font-size: 14px;
        }

        &:hover:not(:disabled) {
            background: var(--brand-hover);
        }

        &:disabled {
            background: #ccc;
            cursor: not-allowed;
        }
    }

    .page-info {
        font-size: 14px;
        color: var(--text-light);
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;


    .popup-container {
        background: var(--white);
        border-radius: 12px;
        min-width: 350px;
        max-width: 600px;
        width: 100%;
        max-height: 90vh;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
        animation: fadeIn 0.3s ease-in-out;
        display: flex;
        flex-direction: column;
        overflow: hidden;

        .popup-header {
            position: sticky;
            top: 0;
            background: var(--white);
            z-index: 2;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 1px solid var(--border);
            padding: 10px 15px;

            h4 {
                margin: 0;
                font-family: var(--font-main);
                color: var(--brand-primary);
                font-size: 20px;
            }

            .close-btn {
                width: 32px;
                height: 32px;
                background: var(--bg-hover);
                border-radius: 50%;
                border: 1px solid lightgray;
                color: var(--brand-accent);
                font-size: 18px;
                cursor: pointer;
                display: flex;
                align-items: center;
                justify-content: center;
                transition: 0.25s;
                box-shadow: 0px 0px 5px lightgrey;

                &:hover {
                    background: var(--brand-accent);
                    color: var(--white);
                }

                &:active {
                    transform: scale(0.95);
                }
            }
        }


        .popup-body {
            flex: 1;
            overflow-y: auto;
            padding: 10px 15px;
            scrollbar-width: none;

            &::-webkit-scrollbar {
                display: none;
            }

            .form-group {
                display: flex;
                flex-direction: column;
                gap: 12px;
                margin-bottom: 20px;

                .input-field,
                .image-input,
                .input-description {
                    border: 1px solid var(--border);
                    border-radius: 6px;
                    padding: 10px 12px;
                    font-size: 15px;
                    width: 100%;
                    font-family: var(--font-main);

                    &:focus {
                        border-color: var(--brand-primary);
                        background: var(--bg-hover);
                        outline: none;
                    }
                }

                .input-description {
                    min-height: 100px;
                    resize: vertical;
                }

                .captcha-row {
                    display: flex;
                    gap: 10px;

                    .captcha-box {
                        padding: 10px 18px;
                        border-radius: 6px;
                        background: #222;
                        color: #fff;
                        font-weight: 700;
                        letter-spacing: 2px;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                    }
                }

                small {
                    color: red;
                    font-size: 12px;
                }

                .image-preview {
                    width: 300px;

                    .preview-img {
                        width: 100%;
                        border-radius: 8px;
                        object-fit: cover;
                        border: 1px solid var(--border);
                    }
                }
            }

        }



        .btn-send {
            width: 90%;
            background: var(--brand-primary);
            border: none;
            padding: 12px;
            border-radius: 10px;
            font-size: 0.98rem;
            color: var(--white);
            font-weight: 600;
            cursor: pointer;
            display: block;
            margin: 10px auto;
            transition: 0.3s;

            &:hover {
                background: var(--brand-accent);
            }

            &:active {
                transform: scale(.95);
            }
        }
    }
}


/* ---------- Master Component Styling ---------- */
.master-container {
    width: 100%;
    max-width: 1200px;
    margin: 25px auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    font-family: var(--font-main);

    .tab-header {
        display: flex;
        gap: 25px;
        border-bottom: 2px solid var(--border);
        padding-bottom: 6px;

        .tab-item {
            padding: 10px 18px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 500;
            color: var(--text-light);
            position: relative;
            transition: all 0.3s ease;

            &:hover {
                color: var(--brand-primary);
                background: var(--bg-hover);
                border-radius: 6px;
            }

            &.active {
                color: var(--brand-primary);
                font-weight: 600;

                &::after {
                    content: "";
                    position: absolute;
                    left: 0;
                    bottom: -7px;
                    width: 100%;
                    height: 3px;
                    background: var(--brand-primary);
                    border-radius: 2px;
                }
            }
        }
    }

    .tab-content {
        margin-top: 25px;
        animation: fadeIn 0.3s ease-in-out;

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(8px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }
}

.tainer-management {


    .trainer-popup-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 999;
        padding: 20px;


        .trainer-popup-container {
            background: var(--white);
            border-radius: 12px;
            min-width: 350px;
            max-width: 600px;
            width: 100%;
            max-height: 90vh;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
            animation: fadeIn 0.3s ease-in-out;
            display: flex;
            flex-direction: column;
            overflow: hidden;

            .trainer-popup-header {
                position: sticky;
                top: 0;
                background: var(--white);
                z-index: 2;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 1px solid var(--border);
                padding: 10px 15px;

                h4 {
                    margin: 0;
                    font-family: var(--font-main);
                    color: var(--brand-primary);
                    font-size: 20px;
                }

                .close-btn {
                    width: 32px;
                    height: 32px;
                    background: var(--bg-hover);
                    border-radius: 50%;
                    border: 1px solid lightgray;
                    color: var(--brand-accent);
                    font-size: 18px;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: 0.25s;
                    box-shadow: 0px 0px 5px lightgrey;

                    &:hover {
                        background: var(--brand-accent);
                        color: var(--white);
                    }

                    &:active {
                        transform: scale(0.95);
                    }
                }
            }


            .popup-body {
                flex: 1;
                overflow-y: auto;
                padding: 10px 15px;
                scrollbar-width: none;

                &::-webkit-scrollbar {
                    display: none;
                }

                .form-group {
                    display: flex;
                    flex-direction: column;
                    gap: 12px;
                    margin-bottom: 20px;

                    .input-field,
                    .image-input,
                    .input-description {
                        border: 1px solid var(--border);
                        border-radius: 6px;
                        padding: 10px 12px;
                        font-size: 15px;
                        width: 100%;
                        font-family: var(--font-main);

                        &:focus {
                            border-color: var(--brand-primary);
                            background: var(--bg-hover);
                            outline: none;
                        }
                    }

                    .input-description {
                        min-height: 100px;
                        resize: vertical;
                    }

                    small {
                        color: red;
                        font-size: 12px;
                    }

                    .image-preview {
                        width: 300px;

                        .preview-img {
                            width: 100%;
                            border-radius: 8px;
                            object-fit: cover;
                            border: 1px solid var(--border);
                        }
                    }
                }

            }



            .btn-send {
                width: 90%;
                background: var(--brand-primary);
                border: none;
                padding: 12px;
                border-radius: 10px;
                font-size: 0.98rem;
                color: var(--white);
                font-weight: 600;
                cursor: pointer;
                display: block;
                margin: 10px auto;
                transition: 0.3s;

                &:hover {
                    background: var(--brand-accent);
                }

                &:active {
                    transform: scale(.95);
                }
            }
        }
    }

    .video-popup-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 25px;
        z-index: 999;
        backdrop-filter: blur(3px);

        .video-popup-container {
            background: #ffffff;
            border-radius: 14px;
            width: 85%;
            max-width: 900px;
            max-height: 90vh;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            animation: fadeIn 0.25s ease-in-out;
            box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
            border: 1px solid #eaeaea;
            position: relative;

            /* HEADER */
            .video-popup-header {
                position: sticky;
                top: 0;
                background: #ffffff;
                z-index: 10;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border-bottom: 2px solid #f3f3f3;
                padding: 15px 18px;

                h4 {
                    font-size: 20px;
                    font-weight: 600;
                    color: var(--brand-primary);
                    margin: 0;

                    .trainer-name {
                        margin-left: 5px;
                        font-weight: 700;
                        color: var(--brand-accent);
                    }
                }

                .close-btn {
                    width: 32px;
                    height: 32px;
                    background: var(--bg-hover);
                    border-radius: 50%;
                    border: 1px solid lightgray;
                    color: var(--brand-accent);
                    font-size: 18px;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: 0.25s;
                    box-shadow: 0px 0px 5px lightgrey;

                    &:hover {
                        background: var(--brand-accent);
                        color: var(--white);
                    }

                    &:active {
                        transform: scale(0.95);
                    }
                }
            }

            .video-popup-body {
                flex: 1;
                overflow-y: auto;
                padding: 15px 18px;

                &::-webkit-scrollbar {
                    display: none;
                }

                .student-row {
                    display: flex;
                    align-items: center;
                    gap: 10px;


                    .student-input {
                        flex: 1;
                        padding: 10px 12px;
                        border: 1px solid var(--border);
                        border-radius: 6px;
                        font-family: var(--font-main);

                        &:focus {
                            border-color: var(--brand-primary);
                            outline: none;
                        }
                    }



                    .student-btn {
                        padding: 8px 15px;
                        background: var(--bg-hover);
                        color: var(--brand-primary);
                        border: 1.5px solid var(--brand-primary);
                        box-shadow: 0px 0px 5px rgb(224, 224, 224);
                        border-radius: 30px;
                        cursor: pointer;

                        &:hover {
                            background: var(--brand-accent);
                            color: var(--white);
                            border-color: var(--brand-secondary);
                        }

                        &:active {
                            transform: scale(.95);
                        }
                    }
                }

                .student-error {
                    width: 100%;
                    color: red;
                    font-size: 13px;
                    padding-top: 5px;
                }

                .video-table {
                    width: 100%;
                    border-collapse: collapse;
                    border: 1px solid #e6e6e6;
                    border-radius: 10px;
                    overflow: hidden;
                    background: white;

                    thead {
                        background: var(--brand-primary);
                        color: white;

                        th {
                            padding: 12px 14px;
                            font-size: 14px;
                            text-align: left;
                            border-right: 1px solid rgba(255, 255, 255, 0.2);
                        }
                    }

                    tbody {
                        tr {
                            &:hover {
                                background: #f7f9fc;
                            }
                        }

                        td {
                            padding: 12px 14px;
                            font-size: 14px;
                            border-bottom: 1px solid #eee;
                        }

                        .s3-path {
                            a {
                                color: var(--brand-primary);
                                font-weight: 500;
                                text-decoration: none;
                                word-break: break-all;
                            }
                        }


                        .no-data {
                            text-align: center;
                            padding: 18px;
                            color: #888;
                            font-size: 15px;
                        }
                    }
                }
            }

            /* Loading overlay inside container */
            .deleting-overlay {
                position: absolute;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(255, 255, 255, 0.8);
                display: flex;
                justify-content: center;
                align-items: center;
                font-weight: 600;
                font-size: 17px;
            }
        }
    }


    .upload-video-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.55);
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 25px;
        z-index: 999;
        backdrop-filter: blur(3px);

        .upload-video-popup {
            background: #ffffff;
            border-radius: 14px;
            width: 480px;
            max-width: 90%;
            animation: fadeIn 0.25s ease-in-out;
            box-shadow: 0 8px 26px rgba(0, 0, 0, 0.25);
            border: 1px solid #eaeaea;
            display: flex;
            flex-direction: column;
            overflow: hidden;

            /* HEADER */
            .popup-header {
                display: flex;
                justify-content: space-between;
                align-items: center;
                padding: 14px 18px;
                border-bottom: 1px solid #efefef;
                background: #ffffff;
                position: sticky;
                top: 0;
                z-index: 10;

                h3 {
                    margin: 0;
                    font-size: 20px;
                    font-weight: 600;
                    color: var(--brand-primary);

                    .highlight {
                        font-weight: 700;
                        color: var(--brand-accent);
                    }
                }

                .close-btn {
                    width: 32px;
                    height: 32px;
                    background: var(--bg-hover);
                    border-radius: 50%;
                    border: 1px solid lightgray;
                    color: var(--brand-accent);
                    font-size: 18px;
                    cursor: pointer;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    transition: 0.25s;
                    box-shadow: 0px 0px 5px lightgrey;

                    &:hover {
                        background: var(--brand-accent);
                        color: var(--white);
                    }

                    &:active {
                        transform: scale(0.95);
                    }
                }
            }

            /* BODY */
            .popup-body {
                padding: 20px 18px;
                display: flex;
                flex-direction: column;
                gap: 14px;

                label {
                    font-size: 14px;
                    font-weight: 600;
                    color: #444;
                }

                input[type="text"] {
                    border: 1px solid #ccc;
                    border-radius: 6px;
                    padding: 10px 12px;
                    font-size: 15px;
                    transition: 0.2s;

                    &:focus {
                        border-color: var(--brand-primary);
                        outline: none;
                        background: #f7faff;
                    }
                }

                input[type="file"] {
                    border: 1px dashed #bbb;
                    border-radius: 8px;
                    padding: 14px 10px;
                    cursor: pointer;
                    background: #fbfbfb;
                    font-size: 14px;
                    transition: 0.2s;

                    &:hover {
                        border-color: var(--brand-primary);
                        background: #f7faff;
                    }
                }
            }

            /* FOOTER */
            .popup-footer {
                padding: 16px 18px;
                border-top: 1px solid #efefef;
                display: flex;
                justify-content: flex-end;
                background: #ffffff;

                .upload-btn {
                    padding: 10px 20px;
                    background: var(--brand-primary);
                    color: white;
                    border: none;
                    border-radius: 6px;
                    font-size: 15px;
                    cursor: pointer;
                    font-weight: 600;
                    transition: 0.25s;

                    &:hover:not(:disabled) {
                        background: var(--brand-accent);
                        transform: scale(1.02);
                    }

                    &:disabled {
                        opacity: 0.5;
                        cursor: not-allowed;
                    }
                }
            }
        }
    }

}

.demo-video-component {
    font-family: var(--font-main);
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);



    .loading {
        text-align: center;
        font-size: 14px;
        color: var(--text-light);
    }

    .table-container {
        overflow-x: auto;

        .trainer-table {
            width: 100%;
            border-collapse: collapse;
            font-family: var(--font-main);
            background: var(--white);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);

            thead {
                background: var(--brand-primary);
                color: var(--white);

                th {
                    padding: 12px 15px;
                    text-align: left;
                    font-weight: 600;
                    font-size: 14px;
                }
            }

            tbody {
                td {
                    padding: 10px 15px;
                    font-size: 14px;
                    color: var(--text);
                    border-bottom: 1px solid var(--border);
                    vertical-align: middle;
                }

                tr:nth-child(even) {
                    background: var(--brand-secondary);
                }

                tr:hover {
                    background: var(--bg-hover);
                }

                .actions {
                    display: flex;
                    gap: 10px;
                    flex-wrap: wrap;

                    .action {
                        width: 30px;
                        height: 30px;
                        border-radius: 6px;
                        border: none;
                        background: var(--brand-primary);
                        color: var(--brand-primary);
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        position: relative;
                        cursor: pointer;
                        font-size: 13px;
                        transition: 0.3s ease;

                        i {
                            pointer-events: none;
                        }

                        &:hover {
                            transform: scale(1.1);

                            i {
                                color: var(--white);
                            }
                        }

                        .tooltip {
                            position: absolute;
                            bottom: 140%;
                            left: 50%;
                            transform: translateX(-50%);
                            background: rgba(0, 0, 0, 0.8);
                            color: #fff;
                            padding: 6px 10px;
                            border-radius: 4px;
                            font-size: 12px;
                            font-weight: 500;
                            white-space: nowrap;
                            opacity: 0;
                            pointer-events: none;
                            transition: opacity 0.3s ease, bottom 0.3s ease;
                            z-index: 999;
                        }

                        &:hover .tooltip {
                            opacity: 1;
                            bottom: 120%;
                        }



                        &.delete {
                            background: #ffd8d5;
                            color: red;

                            &:hover {
                                background: #d32f2f;
                            }
                        }
                    }

                    .action .tooltip::after {
                        content: "";
                        position: absolute;
                        top: 100%;
                        left: 50%;
                        transform: translateX(-50%);
                        border-width: 5px;
                        border-style: solid;
                        border-color: rgba(0, 0, 0, 0.8) transparent transparent transparent;
                    }
                }

            }
        }
    }

    .pagination {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 20px;
        gap: 12px;

        .page-btn {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 6px;
            border: none;
            background: var(--brand-primary);
            color: #fff;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: 0.3s;

            i {
                font-size: 14px;
            }

            &:hover:not(:disabled) {
                background: var(--brand-hover);
            }

            &:disabled {
                background: #ccc;
                cursor: not-allowed;
            }
        }

        .page-info {
            font-size: 14px;
            color: var(--text-light);
        }
    }

    .popup-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;

        .popup-content {
            background: #fff;
            padding: 25px;
            border-radius: 10px;
            min-width: 400px;
            max-width: 90%;

            h3 {
                margin-bottom: 15px;
                font-size: 18px;
            }

            .form-group {
                margin-bottom: 12px;

                .form-input {
                    width: 100%;
                    padding: 8px 10px;
                    border-radius: 6px;
                    border: 1px solid var(--border);
                    font-size: 14px;
                }

                .error {
                    font-size: 12px;
                    color: red;
                    margin-top: 4px;
                }
            }

            .popup-actions {
                margin-top: 15px;
                display: flex;
                gap: 10px;

                .btn {
                    padding: 8px 16px;
                    border-radius: 6px;
                    border: none;
                    font-weight: 500;
                    cursor: pointer;
                    transition: 0.3s;

                    &.save-btn {
                        background: var(--brand-primary);
                        color: #fff;
                    }

                    &.update-btn {
                        background: #28a745;
                        color: #fff;
                    }

                    &.cancel-btn {
                        background: #6c757d;
                        color: #fff;
                    }

                    &:hover {
                        opacity: 0.9;
                    }
                }
            }
        }
    }
}


/* ---------- Mobile Responsive ---------- */
@media (max-width: 768px) {
    body {
        padding-top: 0px;
    }
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;

        h3 {
            font-size: 18px;
            margin-bottom: 5px;
        }

        .right {
            width: 100%;
            flex-direction: column;
            align-items: stretch;
            gap: 10px;

            .addcourse {
                width: 100%;
                justify-content: center;
                padding: 8px 12px;
                font-size: 13px;

                i {
                    font-size: 14px;
                }
            }

            .search-wrapper {
                width: 100%;

                input {
                    width: 100%;
                    padding: 8px 12px 8px 36px;
                    font-size: 13px;
                }
            }
        }
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;

        .table-section {
            min-width: 1200px;
            font-size: 13px;

            thead th,
            tbody td {
                padding: 8px 10px;
            }
        }


    }

    .tainer-management {

        .video-popup-overlay {
            padding: 5px;

            .video-popup-container {
                width: 90%;


                .video-popup-header {
                    padding: 15px 18px;

                    h4 {
                        font-size: 20px;
                    }

                    .close-btn {
                        width: 32px;
                        height: 32px;
                    }
                }

                .video-popup-body {
                    .video-table {
                        width: 950px;
                    }
                }

            }
        }


    }


    .master-container {
        padding: 18px;

        .tab-header {
            flex-wrap: wrap;
            gap: 12px;

            .tab-item {
                font-size: 14px;
                padding: 8px 12px;
            }
        }
    }

    .pagination {
        flex-wrap: wrap;
        gap: 8px;

        .page-btn {
            padding: 5px 10px;
            font-size: 13px;

            i {
                font-size: 12px;
            }
        }

        .page-info {
            font-size: 13px;
        }
    }
}