﻿.sa-c {
    margin: auto;
    row-gap: 15px;
    display: flex;
    flex-direction: column;
    max-width: 450px;
    min-height: 80vh;
}

    .sa-c.center {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 20px;
    }

    .sa-c .header-container {
        display: flex;
        flex-direction: column;
        row-gap: 25px;
    }

    .sa-c .vecon {
        text-align: center;
        font-size: 4rem;
        font-weight: 900;
        color: #ff914d;
    }

    .sa-c .slogan {
        display: flex;
        flex-direction: column;
        text-align: center;
        font-size: 0.8rem;
    }

    .sa-c .score {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 10px;
    }

        .sa-c .score label {
            font-weight: bold;
        }

        .sa-c .score .percent {
            padding: 5px 20px;
            width: 80%;
            text-align: center;
            font-size: 2rem;
            font-weight: bold;
            color: #0ec173;
            background-color: #e0e0e0;
            border-radius: 15px;
        }

    .sa-c .radarchart {
        padding-top: 10px;
        background-color: #f0f0f0;
        border-radius: 15px;
        margin-bottom: 15px;
        text-align: center;
        font-weight: bold;
    }

    .sa-c .e-table {
        display: table;
        width: 100%;
        border-collapse: collapse;
        background-color: #e6e6e6;
        border-radius: 10px;
        overflow: hidden;
        font-size: 0.9rem;
    }

    .sa-c .e-th,
    .e-td {
        display: table-row;
    }

    .sa-c .data {
        display: table-cell;
        padding: 10px;
        text-align: center;
        border: 1px solid #d9d9d9;
    }

    .sa-c .e-th .data {
        font-weight: bold;
        background-color: #f2f2f2;
    }

    .sa-c .sa {
        background: linear-gradient(to right, #ffdd55, #ff8844);
        color: white;
        font-weight: bold;
        padding: 15px 30px;
        border-radius: 30px;
        display: inline-block;
        text-align: center;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        text-shadow: 0px 0px 2px #ff0000;
    }

    .sa-c .aa {
        background: linear-gradient(to right, #c1f0d8, #a5c8ff);
        color: white;
        font-weight: bold;
        padding: 12px 25px;
        border-radius: 25px;
        display: inline-block;
        text-align: center;
        box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
        text-shadow: 0px 0px 2px black;
    }

    .sa-c .activity-table {
        font-size: 0.9rem;
    }

        .sa-c .activity-table td {
            border: 1px solid #ddd;
            padding: 10px;
            text-align: left;
        }

        .sa-c .activity-table th {
            padding: 5px;
            background-color: #f8f8f8;
            font-weight: bold;
            text-align: center;
            font-size: 0.85rem;
        }

        .sa-c .activity-table td:nth-child(2) {
            /* Targets the second column */
            text-align: center;
            vertical-align: middle;
        }

        /* Center badge inside td */
        .sa-c .activity-table td span.badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 30px; /* Adjust as needed */
            height: 30px; /* Adjust as needed */
            border-radius: 15px; /* Makes it circular */
            font-weight: bold;
            color: white;
            text-align: center;
            font-size: 0.9rem;
        }
    /* Badge Colors */
    .sa-c .blue {
        background-color: #b1eaff;
    }

        .sa-c .blue.c,
        .sa-c .blue .c {
            color: #143b6c;
        }

    .sa-c .purple {
        background-color: #8c52ff;
    }

        .sa-c .purple.c,
        .sa-c .purple .c {
            color: #320096;
        }

    .sa-c .red {
        background-color: #fc7a8e;
    }

        .sa-c .red.c,
        .sa-c .red .c {
            color: #892837;
        }

    .sa-c .yellow {
        background-color: #ebb730;
    }

        .sa-c .yellow.c,
        .sa-c .yellow .c {
            color: #8c6707;
        }

    .sa-c .green {
        background-color: #66bb6a;
    }

        .sa-c .green.c,
        .sa-c .green .c {
            color: #007542;
        }

    .sa-c .label .blue {
        background-color: #143b6c;
    }

    .sa-c .label .purple {
        background-color: #320096;
    }

    .sa-c .label .red {
        background-color: #892837;
    }

    .sa-c .label .yellow {
        background-color: #8c6707;
    }

    .sa-c .label .green {
        background-color: #007542;
    }

    .sa-c .typecom.box-v {
        background-color: #b1eaff;
        color: #143b6c;
    }

    .sa-c .typecom.box-e {
        background-color: #8c52ff;
        color: #320096;
    }

    .sa-c .typecom.box-c {
        background-color: #fc7a8e;
        color: #892837;
    }

    .sa-c .typecom.box-o {
        background-color: #ebb730;
        color: #8c6707;
    }

    .sa-c .typecom.box-n {
        background-color: #66bb6a;
        color: #007542;
    }

    .sa-c .box2 {
        padding: 10px;
        background-color: white;
        height: 229px;
        clip-path: polygon(60% 100%, 0% 100%, 0% 0%, 80% 0%);
        display: flex;
        flex-direction: row;
        height: fit-content;
        align-items: center;
        line-height: 0.8;
    }

    .sa-c .typecom {
        position: relative;
        border: 3px solid;
        border-radius: 15px;
        overflow: hidden;
    }

    .sa-c .flt_svg {
        visibility: hidden;
        position: absolute;
        width: 0px;
        height: 0px;
    }

    .sa-c .box_parent {
        filter: url("#flt_tag");
        z-index: 10;
        position: relative;
        margin-bottom: 15px;
    }

    .sa-c .font-icon {
        position: relative;
        font-size: 60px;
        font-weight: 800;
        margin-right: 20px;
        z-index: 1;
    }

    .sa-c .font-text {
        position: relative;
        display: flex;
        flex-direction: column;
        z-index: 1;
        row-gap: 10px;
        font-weight: bold;
        font-size: 1.2rem;
    }

    .sa-c .showdata {
        overflow: hidden;
        transition: max-height 0.5s ease, opacity 0.5s ease;
        opacity: 1;
        max-height: 1000px; /* default สูงไว้ก่อนจะได้ขยาย */
    }

        .sa-c .showdata.collapsed {
            max-height: 0;
            margin: 0;
            padding: 0;
        }


        /* Animation for content elements */
        .sa-c #showdata .label {
            transform: translateY(0);
            opacity: 1;
            transition: all 0.5s ease-out;
        }

    /* V-shaped arrow toggle button styling */
    .sa-c .togglebtn {
        width: 24px;
        height: 24px;
        position: absolute;
        right: 5px;
        bottom: 0px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .sa-c .togglebtn:before {
            position: absolute;
            right: 15px;
            content: "";
            width: 10px;
            height: 10px;
            border-right: 2px solid #333;
            border-bottom: 2px solid #333;
            transform: rotate(45deg);
            transition: transform 0.5s ease;
            margin-top: -5px;
        }

        .sa-c .togglebtn.collapsed:before {
            transform: rotate(-135deg);
            margin-top: 5px;
        }

    /* Add this to all typecom divs */
    .sa-c .typecom {
        position: relative;
    }

        .sa-c .typecom .label {
            font-size: 0.9rem;
        }

            .sa-c .typecom .label .header {
                display: flex;
                background-color: white;
                border-radius: 15px;
                align-items: center;
            }

        .sa-c .typecom .header .main {
            display: flex;
            justify-content: center;
            color: white;
            padding: 1px 5px;
            width: 50%;
            border-radius: 15px;
            margin-right: 10px;
        }

        .sa-c .typecom .header .second {
            font-size: 0.8rem;
            font-style: italic;
            text-align: center;
            color: black;
            width: 50%;
        }

        .sa-c .typecom .label .content {
            margin-top: 5px;
            color: black;
        }


.studentdev .report .form-control {
    border-radius: 0.75rem;
}
/* Dropdown */
.sa-c .filter-container {
    display: flex;
    gap: 10px;
}

    .sa-c .dropdown {
        position: relative;
    }

    .sa-c .dropdown-toggle {
        background: #002d62;
        color: white;
        padding: 8px 15px;
        border-radius: 8px;
        border: none;
        cursor: pointer;
    }

    .sa-c .dropdown-menu {
        display: none;
        position: absolute;
        background: #002d62;
        color: white;
        border-radius: 8px;
        margin-top: 5px;
        width: 150px;
        padding: 10px 0;
        list-style: none;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

        .sa-c .dropdown-menu li {
            padding: 8px 15px;
            cursor: pointer;
        }

            .sa-c .dropdown-menu li:hover {
                background: #0056b3;
            }

    .sa-c .show {
        display: block;
    }

    /* เพิ่มเอฟเฟกต์นุ่มนวลเมื่อเลือก Checkbox */
    .sa-c .form-check-input {
        transition: all 0.5s ease-in-out;
        transform: scale(1);
    }

        /* เมื่อเลือก Checkbox จะขยายขนาดขึ้นเล็กน้อย */
        .sa-c .form-check-input:checked {
            transform: scale(1);
            background-color: #007bff;
            border-color: #0056b3;
        }

    .sa-c .name-q {
        text-align: center;
        font-weight: bold;
    }

        .sa-c .name-q:before {
            content: "ชื่อเรื่อง:";
            margin-right: 10px;
        }

    .sa-c .quiz-form {
        max-width: 600px;
        margin: auto;
        font-size: 1rem;
    }

    .sa-c .question-block {
        display: flex;
        row-gap: 15px;
        flex-direction: column;
        background: #f9f9f9;
        padding: 15px;
        font-family: Arial;
        margin-bottom: 30px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .sa-c legend {
        font-weight: bold;
        margin-bottom: 10px;
        font-size: 1rem;
    }

    /* ปรับสไตล์ปุ่มกด */
    .sa-c .submit-btn {
        display: block;
        width: 100%;
        padding: 10px;
        background: #007bff;
        color: white;
        border: none;
        border-radius: 5px;
        font-size: 16px;
        cursor: pointer;
        margin-top: 10px;
    }

        .sa-c .submit-btn:hover {
            background: #0056b3;
        }

    /* ปรับสไตล์ radio ให้ดูเหมือน checkbox */
    .sa-c .custom-radio {
        display: flex;
        cursor: pointer;
        border-radius: 5px;
        position: relative;
        transition: all 0.3s;
    }

        .sa-c .custom-radio:hover {
            background: #e9ecef;
        }

        .sa-c .custom-radio input {
            position: absolute;
            opacity: 0;
            cursor: pointer;
        }

    /* Wrapper for radio input to add padding */
    .sa-c .radio-wrapper {
        padding-top: 4px; /* Add padding top here */
    }

    /* กล่อง checkbox ปลอม */
    .sa-c .checkmark {
        width: 18px;
        height: 18px;
        border: 2px solid black;
        border-radius: 4px;
        margin-right: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    /* เมื่อเลือกแล้ว ให้เปลี่ยนสี */
    .sa-c .custom-radio input:checked + .checkmark {
        background: white;
        border-color: black;
    }

        /* เพิ่มเครื่องหมายถูกเมื่อเลือก */
        .sa-c .custom-radio input:checked + .checkmark::after {
            content: "✔";
            color: black;
            font-size: 14px;
            font-weight: bold;
        }


    .sa-c .typecom .li-q {
        display: flex;
        justify-content: space-between;
    }

    .sa-c .typecom .topic::before {
        content: "- "
    }

    .sa-c .typecom .topic {
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow: hidden;
        color: black;
    }

    .sa-c .typecom .li-q a::after {
        content: " >>";
        padding-left: 5px;
        
    }

    .sa-c .typecom .li-q .center {
        display: flex;
        justify-content: center;
    }

    .sa-c .typecom .li-q .end {
        color: black;
        display: flex;
        display: flex;
        justify-content: flex-end;
        flex: 1;
    }

.registration-status {
    padding: 4px 15px;
    border-radius: 5px;
    font-weight: bold;
    display: flex;
    justify-content: space-between; /* To push description to right */
    align-items: center;
}

@media (max-width: 768px) {
    .sa-c legend {
        font-size: 1.3rem;
    }
    .sa-c .custom-radio {
        font-size: 1.3rem;
    }
}
