/* --- Main Overlay --- */
#student-ai-demo-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99998; /* Adjusted z-index to avoid potential overlap */
    padding: 20px;
    box-sizing: border-box;
}

/* --- Main Container --- */
#student-ai-demo-container {
    background-color: #E3CA94; /* Darker Tan/Beige */
    border-radius: 8px;
    position: relative;
    padding: 10px;
    width: 100%;
    max-width: 800px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    box-sizing: border-box;
}

/* --- Content Box (with white border) --- */
#student-ai-demo-content-box {
    border: 2px solid white;
    margin: 5px;
    height: 350px;
    overflow: hidden;
    position: relative;
}

/* --- Slider Wrapper --- */
#student-ai-demo-slider-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* --- Content Panels --- */
.student-ai-demo-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
}

/* Styles for the top headers */
.student-ai-demo-panel .panel-header {
    color: white !important;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Inject emojis using CSS to bypass HTML encoding issues */
#header-after::before {
    content: '🎯 '; /* Target emoji + a space */
}
#header-before::before {
    content: '😴 '; /* Snoozing Face emoji + a space */
}

.student-ai-demo-panel h4 {
    margin-top: 0;
    color: #000080 !important; /* Navy Blue */
    font-size: 1.4em;
}

.student-ai-demo-panel p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #000000; /* Black */
}

/* Specific panel styles for static text effect */
.panel-after {
    z-index: 1; /* Base layer */
}

.panel-before {
    z-index: 3;
    background-color: #E3CA94;
    width: 100%; /* Panel is always full width */
    clip-path: inset(0 50% 0 0); /* Reveals the left 50% */
}

/* --- Slider Mechanism --- */
#student-ai-demo-slider-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: white;
    left: 50%;
    transform: translateX(-50%);
    cursor: ew-resize;
    z-index: 4;
    pointer-events: none;
}

.student-ai-demo-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    background: transparent;
    outline: none;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 5;
    margin: 0;
    padding: 0;
    cursor: ew-resize;
}

/* Slider Thumb */
.student-ai-demo-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white' width='40px' height='40px'%3E%3Cpath d='M0 0h24v24H0z' fill='none'/%3E%3Cpath d='M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z'/%3E%3Cpath d='M15.41 16.59L20 12l-4.59-4.59L17 6l6 6-6 6-1.41-1.41z' transform='rotate(180 12 12)'/%3E%3C/svg%3E");
    background-color: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
    cursor: ew-resize;
    transform: translateY(-50%);
    margin-top: 2px;
}

.student-ai-demo-slider::-moz-range-thumb {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border: 2px solid white;
    border-radius: 50%;
    cursor: ew-resize;
}


/* --- Buttons --- */
#student-ai-demo-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    background: white;
    border: 2px solid #E3CA94;
    border-radius: 50%;
    color: #333;
    font-size: 24px;
    line-height: 30px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    font-weight: bold;
}

#student-ai-demo-cta-btn {
    margin-top: 20px;
    padding: 15px 30px;
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    text-align: center;
}
#student-ai-demo-cta-btn:hover {
    background-color: #45a049; /* Darker Green */
}

/* --- Slider Instruction Text --- */
.sad-slider-instruction {
    color: white !important;
    text-align: center;
    font-weight: normal;
    font-style: italic;
    margin: 15px 0 0 0;
    font-size: 26px; /* You can adjust this value */
}