
/* Base modal styles - improved for responsiveness */
.add-classes-animated-modal *,
.teacher-reports-animated-modal * {
    box-sizing: border-box;
}

.add-classes-animated-modal #modal-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 2060;
    /* Add padding for mobile safety */
    padding: 10px;
}

    .add-classes-animated-modal #modal-container.one {
        transform: scaleY(0.01) scaleX(0);
        animation: add-classes-unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

        .add-classes-animated-modal #modal-container.one .modal-background .modal {
            transform: scale(0);
            animation: add-classes-zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .add-classes-animated-modal #modal-container.one.out {
            transform: scale(1);
            animation: add-classes-unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

            .add-classes-animated-modal #modal-container.one.out .modal-background .modal {
                animation: add-classes-zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
            }



         /*   form Student*/
.add-classes-animated-modal #student-modal-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 2060;
    /* Add padding for mobile safety */
    padding: 10px;
}

    .add-classes-animated-modal #student-modal-container.one {
        transform: scaleY(0.01) scaleX(0);
        animation: add-classes-unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

        .add-classes-animated-modal #student-modal-container.one .modal-background .modal {
            transform: scale(0);
            animation: add-classes-zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .add-classes-animated-modal #student-modal-container.one.out {
            transform: scale(1);
            animation: add-classes-unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

            .add-classes-animated-modal #student-modal-container.one.out .modal-background .modal {
                animation: add-classes-zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
            }

.add-classes-animated-modal #modal-selfEnroll-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 2060;
    /* Add padding for mobile safety */
    padding: 10px;
}

    .add-classes-animated-modal #modal-selfEnroll-container.one {
        transform: scaleY(0.01) scaleX(0);
        animation: add-classes-unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

        .add-classes-animated-modal #modal-selfEnroll-container.one .modal-background .modal {
            transform: scale(0);
            animation: add-classes-zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .add-classes-animated-modal #modal-selfEnroll-container.one.out {
            transform: scale(1);
            animation: add-classes-unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

            .add-classes-animated-modal #modal-selfEnroll-container.one.out .modal-background .modal {
                animation: add-classes-zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
            }



/*   form general*/
.add-classes-animated-modal #modal-general-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 2060;
    /* Add padding for mobile safety */
    padding: 10px;
}

    .add-classes-animated-modal #modal-general-container.one {
        transform: scaleY(0.01) scaleX(0);
        animation: add-classes-unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

        .add-classes-animated-modal #modal-general-container.one .modal-background .modal {
            transform: scale(0);
            animation: add-classes-zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .add-classes-animated-modal #modal-general-container.one.out {
            transform: scale(1);
            animation: add-classes-unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

            .add-classes-animated-modal #modal-general-container.one.out .modal-background .modal {
                animation: add-classes-zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
            }

/* Pilot request chat (anonymous / login) */
.add-pilot-chat-animated-modal #modal-pilot-chat-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 2060;
    padding: 10px;
}

    .add-pilot-chat-animated-modal #modal-pilot-chat-container.one {
        transform: scaleY(0.01) scaleX(0);
        animation: add-classes-unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

        .add-pilot-chat-animated-modal #modal-pilot-chat-container.one .modal-background .modal {
            transform: scale(0);
            animation: add-classes-zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .add-pilot-chat-animated-modal #modal-pilot-chat-container.one.out {
            transform: scale(1);
            animation: add-classes-unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

            .add-pilot-chat-animated-modal #modal-pilot-chat-container.one.out .modal-background .modal {
                animation: add-classes-zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
            }

/* Teacher Reports Modal Container */
.teacher-reports-animated-modal #modal-reports-container {
    position: fixed;
    display: table;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    transform: scale(0);
    z-index: 2060;
    /* Add padding for mobile safety */
    padding: 10px;
}

    .teacher-reports-animated-modal #modal-reports-container.one {
        transform: scaleY(0.01) scaleX(0);
        animation: add-classes-unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    }

        .teacher-reports-animated-modal #modal-reports-container.one .modal-background .modal {
            transform: scale(0);
            animation: add-classes-zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

        .teacher-reports-animated-modal #modal-reports-container.one.out {
            transform: scale(1);
            animation: add-classes-unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
        }

            .teacher-reports-animated-modal #modal-reports-container.one.out .modal-background .modal {
                animation: add-classes-zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
            }

.add-classes-animated-modal .modal-background,
.teacher-reports-animated-modal .modal-background {
    display: table-cell;
    background: rgba(0, 0, 0, 0.8);
    text-align: center;
    vertical-align: middle;
    /* Improve mobile alignment */
    padding: 20px 10px;
}

    /* Updated modal container - key responsiveness improvements */
    .add-classes-animated-modal .modal-background .modal,
    .teacher-reports-animated-modal .modal-background .modal {
        background: white;
        padding: 0;
        display: inline-block;
        border-radius: 8px;
        font-weight: 300;
        position: relative;
        box-shadow: 0 8px 40px rgba(0,0,0,0.2);
        /* Responsive width and height */
        width: 95vw;
        max-width: 1200px;
        min-width: 320px;
        /* Critical: Use max-height with proper calculation */
        max-height: calc(100vh - 40px);
        height: auto;
        min-height: 300px;
        /* Ensure proper flex layout */
        display: flex;
        flex-direction: column;
        /* Center on larger screens */
        margin: 0 auto;
    }

/* Modal header - responsive improvements */
.add-classes-animated-modal .modal-header,
.teacher-reports-animated-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background:linear-gradient(135deg, rgb(130 149 234) 0%, rgb(104, 94, 221) 100%) !important;
    color: #fff !important;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    flex-shrink: 0; /* Prevent header from shrinking */
    min-height: 70px;
}

    .add-classes-animated-modal .modal-header .close,
    .teacher-reports-animated-modal .modal-header .close {
        color: #fff !important;
        align-self: center;
        margin: 0;
        font-size: 28px;
        padding: 5px;
        min-width: 40px;
        min-height: 40px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .add-classes-animated-modal .modal-header .lu-gradient-text,
    .teacher-reports-animated-modal .modal-header .lu-gradient-text {
        color: #fff !important;
    }

/* Modal body - responsive improvements */
.add-classes-animated-modal .modal-body,
.teacher-reports-animated-modal .modal-body {
    font-size: 16px;
    flex-grow: 1;
    overflow-y: auto;
    display: flex;
    padding: 0;
    /* Ensure body takes available space but doesn't overflow */
    min-height: 0; /* Important for flex child */
}

/* Form panel adjustments */
.add-classes-animated-modal .form-panel,
.teacher-reports-animated-modal .form-panel {
    width: 100%;
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .add-classes-animated-modal .form-panel .container,
    .teacher-reports-animated-modal .form-panel .container {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .add-classes-animated-modal .form-panel .row,
    .teacher-reports-animated-modal .form-panel .row {
        flex: 1;
        display: flex;
        margin: 0;
    }

    .add-classes-animated-modal .form-panel .col-12,
    .teacher-reports-animated-modal .form-panel .col-12 {
        padding: 0;
        display: flex;
        flex-direction: column;
        flex: 1;
    }

.add-classes-animated-modal .card,
.teacher-reports-animated-modal .card {
    background: #fff;
    box-shadow: 13px 13px 28px 2px rgba(0, 0, 0, 0.035);
    border: none;
    border-radius: 8px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.add-classes-animated-modal #chatClass,
.teacher-reports-animated-modal #chatReports {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Modal footer - responsive improvements */
.add-classes-animated-modal .modal-footer,
.teacher-reports-animated-modal .modal-footer {
    background: white;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    flex-shrink: 0; /* Prevent footer from shrinking */
    display: flex;
    justify-content: flex-end; /* Move button to right */
    align-items: center;
    min-height: 70px;
}

/* SVG border adjustments */
.add-classes-animated-modal .modal-svg,
.teacher-reports-animated-modal .modal-svg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 8px;
    pointer-events: none;
}

    .add-classes-animated-modal .modal-svg rect,
    .teacher-reports-animated-modal .modal-svg rect {
        stroke: #fff;
        stroke-width: 2px;
        stroke-dasharray: 778;
        stroke-dashoffset: 778;
    }

/* Hide scroll on body when modal is active */
body.modal-active {
    overflow: hidden;
}

.add-classes-animated-modal .close,
.teacher-reports-animated-modal .close {
    cursor: pointer;
}

/* Mobile-specific improvements */
@media (max-width: 768px) {
    .add-classes-animated-modal #modal-container,
    .teacher-reports-animated-modal #modal-reports-container {
        padding: 5px;
    }
    
    .add-classes-animated-modal #student-modal-container {
        padding: 5px;
    }
    .add-classes-animated-modal #modal-selfEnroll-container {
        padding: 5px;
    }
    .add-classes-animated-modal #modal-general-container {
        padding: 5px;
    }
    .add-pilot-chat-animated-modal #modal-pilot-chat-container {
        padding: 5px;
    }

    .add-classes-animated-modal .modal-background,
    .teacher-reports-animated-modal .modal-background {
        padding: 10px 5px;
    }

        .add-classes-animated-modal .modal-background .modal,
        .teacher-reports-animated-modal .modal-background .modal {
            width: calc(100vw - 10px);
            max-width: none;
            min-width: 280px;
            max-height: calc(100vh - 20px);
            border-radius: 6px;
        }

    .add-classes-animated-modal .modal-footer,
    .teacher-reports-animated-modal .modal-footer {
        padding: 0.75rem 1rem;
        min-height: 60px;
        justify-content: flex-end; /* Keep button on right for mobile too */
    }

    .add-classes-animated-modal .modal-header,
    .teacher-reports-animated-modal .modal-header {
        padding: 0.75rem 1rem;
        min-height: 60px;
        flex-wrap: wrap;
    }

        .add-classes-animated-modal .modal-header .lu-gradient-title,
        .teacher-reports-animated-modal .modal-header .lu-gradient-title {
            flex: 1;
            min-width: 0;
        }

        .add-classes-animated-modal .modal-header .lu-gradient-text,
        .teacher-reports-animated-modal .modal-header .lu-gradient-text {
            font-size: 1.2rem;
        }

        .add-classes-animated-modal .modal-header .lu-ai-icon,
        .teacher-reports-animated-modal .modal-header .lu-ai-icon {
            width: 35px !important;
            height: 42px !important;
            min-width: 35px !important;
            min-height: 42px !important;
            margin-right: 8px;
        }

            .add-classes-animated-modal .modal-header .lu-ai-icon img,
            .teacher-reports-animated-modal .modal-header .lu-ai-icon img {
                width: 35px !important;
                height: 42px !important;
            }

        .add-classes-animated-modal .modal-header .close,
        .teacher-reports-animated-modal .modal-header .close {
            font-size: 24px;
            min-width: 35px;
            min-height: 35px;
        }

    .add-classes-animated-modal .form-panel,
    .teacher-reports-animated-modal .form-panel {
        padding: 10px;
    }

    .add-classes-animated-modal .modal-body,
    .teacher-reports-animated-modal .modal-body {
        font-size: 14px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .add-classes-animated-modal .modal-background .modal,
    .teacher-reports-animated-modal .modal-background .modal {
        width: calc(100vw - 6px);
        max-height: calc(100vh - 12px);
    }

    .add-classes-animated-modal .modal-header,
    .teacher-reports-animated-modal .modal-header {
        padding: 0.5rem 0.75rem;
        min-height: 55px;
    }

        .add-classes-animated-modal .modal-header .lu-gradient-text,
        .teacher-reports-animated-modal .modal-header .lu-gradient-text {
            font-size: 1.1rem;
        }

    .add-classes-animated-modal .modal-footer,
    .teacher-reports-animated-modal .modal-footer {
        padding: 0.5rem 0.75rem;
        min-height: 55px;
        justify-content: flex-end; /* Keep button on right for small screens too */
    }

    .add-classes-animated-modal .lu-liquid-close-btn,
    .teacher-reports-animated-modal .lu-liquid-close-btn,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn {
        padding: 10px 20px;
        font-size: 14px;
        min-width: 100px;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .add-classes-animated-modal .modal-background .modal,
    .teacher-reports-animated-modal .modal-background .modal {
        max-height: calc(100vh - 10px);
    }

    .add-classes-animated-modal .modal-header,
    .teacher-reports-animated-modal .modal-header {
        min-height: 50px;
        padding: 0.5rem 1rem;
    }

    .add-classes-animated-modal .modal-footer,
    .teacher-reports-animated-modal .modal-footer {
        min-height: 50px;
        padding: 0.5rem 1rem;
        justify-content: flex-end; /* Keep button on right for landscape too */
    }
}

/* Animations remain the same */
@keyframes add-classes-unfoldIn {
    0% {
        transform: scaleY(0.005) scaleX(0);
    }

    50% {
        transform: scaleY(0.005) scaleX(1);
    }

    100% {
        transform: scaleY(1) scaleX(1);
    }
}

@keyframes add-classes-unfoldOut {
    0% {
        transform: scaleY(1) scaleX(1);
    }

    50% {
        transform: scaleY(0.005) scaleX(1);
    }

    100% {
        transform: scaleY(0.005) scaleX(0);
    }
}

@keyframes add-classes-zoomIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes add-classes-zoomOut {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(0);
    }
}

/* Button styles remain the same */
.add-classes-animated-modal .lu-liquid-close-btn,
.teacher-reports-animated-modal .lu-liquid-close-btn,
.add-pilot-chat-animated-modal .lu-liquid-close-btn {
    position: relative;
    padding: 12px 28px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    background: none;
    color: #d90429;
    border: 2px solid #d90429;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s ease;
    z-index: 1;
    min-width: 120px;
    outline: none;
    box-shadow: none;
}

    .add-classes-animated-modal .lu-liquid-close-btn:focus,
    .teacher-reports-animated-modal .lu-liquid-close-btn:focus,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:focus {
        outline: none;
    }

    .add-classes-animated-modal .lu-liquid-close-btn .button-text,
    .teacher-reports-animated-modal .lu-liquid-close-btn .button-text,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn .button-text {
        position: relative;
        z-index: 3;
        transition: all 0.4s ease;
    }

    .add-classes-animated-modal .lu-liquid-close-btn .button-decoration,
    .teacher-reports-animated-modal .lu-liquid-close-btn .button-decoration,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn .button-decoration {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1;
        border-radius: 50px;
        transition: all 0.4s ease;
    }

    .add-classes-animated-modal .lu-liquid-close-btn .button-icon,
    .teacher-reports-animated-modal .lu-liquid-close-btn .button-icon,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn .button-icon {
        position: absolute;
        top: 50%;
        right: 20px;
        transform: translateY(-50%) scale(0);
        width: 20px;
        height: 20px;
        z-index: 3;
        transition: all 0.4s ease;
        opacity: 0;
        color: #fff;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover,
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover {
        color: #fff;
        padding-right: 45px;
        box-shadow: 0 6px 16px rgba(217, 4, 41, 0.2);
        border-color: transparent;
        transform: translateY(-3px);
    }

        .add-classes-animated-modal .lu-liquid-close-btn:hover .button-decoration,
        .teacher-reports-animated-modal .lu-liquid-close-btn:hover .button-decoration,
        .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .button-decoration {
            background: linear-gradient(135deg, #d90429, #ef233c);
        }

        .add-classes-animated-modal .lu-liquid-close-btn:hover .button-icon,
        .teacher-reports-animated-modal .lu-liquid-close-btn:hover .button-icon,
        .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .button-icon {
            transform: translateY(-50%) scale(1);
            opacity: 1;
        }

    .add-classes-animated-modal .lu-liquid-close-btn .button-particles,
    .teacher-reports-animated-modal .lu-liquid-close-btn .button-particles,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn .button-particles {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        overflow: hidden;
        pointer-events: none;
    }

    .add-classes-animated-modal .lu-liquid-close-btn .particle,
    .teacher-reports-animated-modal .lu-liquid-close-btn .particle,
    .add-pilot-chat-animated-modal .lu-liquid-close-btn .particle {
        position: absolute;
        display: block;
        width: 12px;
        height: 12px;
        background: rgba(255,255,255,0.5);
        border-radius: 50%;
        opacity: 0;
        transform: scale(0);
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(1),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(1),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(1) {
        animation: lu-particle-animation 0.8s 0.1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 30%;
        top: 20%;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(2),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(2),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(2) {
        animation: lu-particle-animation 0.8s 0.2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 60%;
        top: 10%;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(3),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(3),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(3) {
        animation: lu-particle-animation 0.8s 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 20%;
        top: 60%;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(4),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(4),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(4) {
        animation: lu-particle-animation 0.8s 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 70%;
        top: 70%;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(5),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(5),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(5) {
        animation: lu-particle-animation 0.8s 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 30%;
        top: 80%;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(6),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(6),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(6) {
        animation: lu-particle-animation 0.8s 0.1s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 50%;
        top: 30%;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(7),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(7),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(7) {
        animation: lu-particle-animation 0.8s 0.2s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 80%;
        top: 40%;
    }

    .add-classes-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(8),
    .teacher-reports-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(8),
    .add-pilot-chat-animated-modal .lu-liquid-close-btn:hover .particle:nth-child(8) {
        animation: lu-particle-animation 0.8s 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
        left: 15%;
        top: 40%;
    }

@keyframes lu-particle-animation {
    0% {
        opacity: 0;
        transform: scale(0) translate(0, 0);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: scale(2.2) translate(16px, -16px);
    }
}

.add-classes-animated-modal .lu-liquid-close-btn:active,
.teacher-reports-animated-modal .lu-liquid-close-btn:active,
.add-pilot-chat-animated-modal .lu-liquid-close-btn:active {
    transform: scale(0.97) translateY(-1px);
    box-shadow: 0 3px 8px rgba(217, 4, 41, 0.15);
}

/* Title and gradient styles */
.add-classes-animated-modal .lu-gradient-title,
.teacher-reports-animated-modal .lu-gradient-title {
    text-align: center;
    margin-bottom: 0;
    padding: 0.5rem 0;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    position: relative;
}

.add-classes-animated-modal .lu-ai-icon,
.teacher-reports-animated-modal .lu-ai-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.5rem;
    filter: drop-shadow(0 0 8px #6f71e288) drop-shadow(0 0 2px #fff);
    animation: ai-glow 4s infinite alternate;
}

@keyframes ai-glow {
    0% {
        filter: drop-shadow(0 0 8px #8179e988) drop-shadow(0 0 2px #fff);
    }

    100% {
        filter: drop-shadow(0 0 16px #6245c9) drop-shadow(0 0 6px #fff);
    }
}

.add-classes-animated-modal .lu-gradient-text,
.teacher-reports-animated-modal .lu-gradient-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 1px;
    cursor: pointer;
    display: inline-block;
    color: #fff !important;
}

    .add-classes-animated-modal .lu-gradient-text:hover,
    .teacher-reports-animated-modal .lu-gradient-text:hover {
        filter: brightness(1.1) drop-shadow(0 2px 8px #5f0e96cc);
        animation-play-state: paused;
    }

@keyframes lu-gradient-move {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.add-classes-animated-modal .ai-futuristic-text,
.teacher-reports-animated-modal .ai-futuristic-text {
    position: relative;
    padding-bottom: 0.3rem;
}

.add-classes-animated-modal .ai-underline,
.teacher-reports-animated-modal .ai-underline {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, #ef233c 0%, rgb(118, 75, 162) 100%);
    background-size: 200% 200%;
    opacity: 0.5;
    animation: ai-underline-move 10s linear infinite;
    z-index: 2;
}

@keyframes ai-underline-move {
    0% {
        background-position: 0% 50%;
    }

    100% {
        background-position: 100% 50%;
    }
}
@media (max-width: 768px) {
    .add-selfEnroll-animated-modal .modal {
        width: 95vw !important;
        height: 85vh !important;
        max-height: 85vh !important;
        margin: 7.5vh auto !important;
        border-radius: 15px !important;
    }

    .add-selfEnroll-animated-modal .modal-header {
        padding: 0.5rem 1rem !important;
        flex-wrap: wrap !important;
        min-height: 60px !important;
        flex-shrink: 0 !important;
    }

        .add-selfEnroll-animated-modal .modal-header h1 {
            font-size: 0.9rem !important;
            margin-bottom: 0 !important;
        }

        .add-selfEnroll-animated-modal .modal-header .lu-ai-icon {
            width: 30px !important;
            height: 30px !important;
            min-width: 30px !important;
            min-height: 30px !important;
            margin-right: 6px !important;
        }

            .add-selfEnroll-animated-modal .modal-header .lu-ai-icon img {
                width: 30px !important;
                height: 30px !important;
            }

    .add-selfEnroll-animated-modal .modal-body {
        padding: 0.5rem !important;
        height: calc(85vh - 120px) !important;
        overflow-y: auto !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .add-selfEnroll-animated-modal .form-panel {
        padding: 8px !important;
        height: 100% !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
    }

        .add-selfEnroll-animated-modal .form-panel .container {
            flex: 1 !important;
            height: 100% !important;
            display: flex !important;
            flex-direction: column !important;
        }

        .add-selfEnroll-animated-modal .form-panel .row {
            flex: 1 !important;
            margin: 0 !important;
            height: 100% !important;
        }

        .add-selfEnroll-animated-modal .form-panel .col-12 {
            display: flex !important;
            flex-direction: column !important;
            flex: 1 !important;
            padding: 0 !important;
            height: 100% !important;
        }

    .add-selfEnroll-animated-modal .card {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        margin-bottom: 0 !important;
        height: 100% !important;
    }

    .add-selfEnroll-animated-modal .conv-form-wrapper {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .add-selfEnroll-animated-modal #selfEnrollStudent {
        flex: 1 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }

    /* Focus on increasing wrapper-messages height */
    .add-selfEnroll-animated-modal .conv-form-wrapper .wrapper-messages {
        flex: 1 !important;
        height: calc(85vh - 200px) !important;
        min-height: calc(85vh - 200px) !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 15px !important;
    }

    .add-selfEnroll-animated-modal .conv-form-wrapper .wrapper {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100% !important;
    }

    .add-selfEnroll-animated-modal .conv-form-wrapper .chat {
        flex: 1 !important;
        overflow-y: auto !important;
        max-height: none !important;
        height: 100% !important;
    }

    /* Fix text wrapping in conversation questions */
    .add-selfEnroll-animated-modal .conv-form-wrapper .question {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        max-width: 100% !important;
        line-height: 1.4 !important;
        margin-bottom: 10px !important;
    }

    .add-selfEnroll-animated-modal .conv-form-wrapper .formatDisplay,
    .add-selfEnroll-animated-modal .conv-form-wrapper .exampleDisplay {
        font-size: 0.75em !important;
        padding: 6px 8px !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        white-space: normal !important;
        margin: 5px 0 !important;
        line-height: 1.3 !important;
    }

    .add-selfEnroll-animated-modal .modal-footer {
        padding: 0.5rem 1rem !important;
        min-height: 60px !important;
        flex-shrink: 0 !important;
    }

    .add-selfEnroll-animated-modal .lu-liquid-close-btn {
        padding: 8px 16px !important;
        font-size: 0.9rem !important;
    }

    /* Ensure input area stays at bottom */
    .add-selfEnroll-animated-modal .conv-form-wrapper .input {
        margin-top: auto !important;
        flex-shrink: 0 !important;
        padding: 10px !important;
        border-top: 1px solid #eee !important;
        background: #fff !important;
    }
}

/* Tablet responsive styling */
@media (max-width: 992px) and (min-width: 769px) {
    .add-selfEnroll-animated-modal .modal {
        width: 90vw !important;
        height: 80vh !important;
        max-height: 80vh !important;
    }

    .add-selfEnroll-animated-modal .modal-body {
        height: calc(80vh - 120px) !important;
        overflow-y: auto !important;
    }

    .add-selfEnroll-animated-modal .conv-form-wrapper .wrapper-messages {
        min-height: calc(80vh - 180px) !important;
    }
}
  