.body {
    padding: 0;
}

.demo-container {
    text-align: center;
    color: white;
    z-index: 1;
    padding: 20px;
}

.demo-container h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.demo-container p {
    font-size: clamp(1rem, 3vw, 1.25rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.play-button {
    background: white;
    color: #667eea;
    border: none;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 16px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Improved Team List Styles */
.improved-team-item {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 8px 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s;
}

.improved-team-input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 16px;
    padding: 8px 0;
    outline: none;
    color: #222;
}

.improved-delete-team-btn {
    background: none;
    border: none;
    margin-left: 10px;
    padding: 6px;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.improved-delete-team-btn svg {
    stroke: #e74c3c;
    transition: stroke 0.2s;
}

.improved-delete-team-btn:hover {
    background: #fdecea;
}

.improved-delete-team-btn:hover svg {
    stroke: #c0392b;
}

.play-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.play-button:active {
    transform: translateY(0);
}

/* ================================
   OVERLAY
   ================================ */

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ================================
   GIMKIT STYLE POPUP
   ================================ */

.popup {
    position: fixed;
    top: 54%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: 95%;
    max-width: 960px;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 82%;
}

.popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* ================================
   TOPBAR SECTION
   ================================ */

.popup-topbar {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 28px;
    background: #2c8490;
    border-bottom: none;
    position: relative;
}

.custombox{
    display: none !important;
}

.topbar-icon {
    position: absolute;
    left: 28px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.topbar-icon svg {
    color: white;
}

#closePopup {
    border-radius: 32px;
    border: none;
}


.popup button {
    padding: 1rem !important;
    margin-top: 20px !important;
}

.topbar-title {
  
    font-weight: 700;
    color: white;
    letter-spacing: -0.02em;
    text-align: center;
    font-size: 1.7rem !important;
    margin: auto !important;
    font-family: "museo-sans-rounded-2" !important;
}
 

.fa-times:hover{
    color: #221b1b;
}

/* .close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.close-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
} */

.close-btn i {
    color: white;
    font-size: 18px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Subtle pulse animation to draw attention to close button */
@keyframes closeButtonPulse {

    0%,
    100% {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1);
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        background: rgba(255, 255, 255, 0.35);
        transform: scale(1.05);
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    }
}

/* ================================
   MAIN SECTION (Split Layout)
   ================================ */

.popup-main {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

/* ================================
   LEFT PANEL: MODES LIST
   ================================ */

.modes-panel {
    width: 40%;
    background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
    border-right: 1px solid rgba(44, 132, 144, 0.2);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.modes-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(44, 132, 144, 0.2);
    background: rgba(44, 132, 144, 0.05);
}

.modes-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.modes-list {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

.modes-list::-webkit-scrollbar {
    width: 6px;
}

.modes-list::-webkit-scrollbar-track {
    background: transparent;
}

.modes-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modes-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mode Item Button */
.mode-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    text-align: left;
    position: relative;
    z-index: 1;
    pointer-events: auto;
}

.mode-item:hover {
    border-color: #2c8490;
    background: #f0fdfa;
}

.mode-item.active {
    border-color: #2c8490;
    background: rgba(54, 174, 201, 0.08);
    box-shadow: 0 2px 8px rgba(54, 174, 201, 0.15);
}

.mode-icon-wrapper {
    width: 44px;
    height: 44px;
    background: #2c8490;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mode-icon-wrapper svg {
    color: white;
}

.mode-info {
    flex: 1;
    min-width: 0;
}

.mode-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2px;
}

.mode-short-desc {
    display: block;
    font-size: 0.8rem;
    color: #64748b;
}

.mode-check {
    width: 24px;
    height: 24px;
    background: #2c8490;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
}

.mode-check svg {
    color: white;
}

.mode-item.active .mode-check {
    opacity: 1;
    transform: scale(1);
}

/* ================================
   RIGHT PANEL: DETAILS
   ================================ */

.details-panel {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
}

.details-panel::-webkit-scrollbar {
    width: 6px;
}

.details-panel::-webkit-scrollbar-track {
    background: transparent;
}

.details-panel::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

/* Details Header */
.details-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.details-icon {
    width: 80px;
    height: 80px;
    background: #2c8490;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(44, 132, 144, 0.25);
}

.details-icon svg {
    color: white;
}

.details-title-wrap {
    flex: 1;
}

.details-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 6px;
}

.details-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

/* Details Description */
.details-description {
    margin-bottom: 18px;
}

.details-description p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
}

/* Details Badges */
.details-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.badge {
    padding: 6px 14px;
    background: rgba(54, 174, 201, 0.1);
    color: #2c8490;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(54, 174, 201, 0.2);
}

/* Settings Section */
.settings-section {
    margin-bottom: 20px;
}

.settings-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}

.toggle-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 10px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.toggle-item:hover {
    background: #f1f5f9;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    color: #334155;
    font-size: 0.9rem;
}

.toggle-label svg {
    color: #2c8490;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 26px;
    transition: all 0.3s ease;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked+.toggle-slider {
    background: #2c8490;
    background-color: #26d0ce;
    border-color: #26d0ce;
}

.toggle-switch input:checked+span {
    background-color: #26d0ce !important;
}

input:checked+.toggle-slider {
    background-color: #26d0ce;
    border-color: #26d0ce;
}

.toggle-switch input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* Info Box */
.info-box {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 24px;
}

.info-box svg {
    flex-shrink: 0;
    color: #d97706;
    margin-top: 1px;
}

.info-box p {
    color: #92400e;
    line-height: 1.5;
    font-size: 0.85rem;
}

/* Launch Button */
.launch-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    background: #2c8490;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(54, 174, 201, 0.35);
    margin-top: auto;
}

.launch-btn:hover {
    background: #2a9bb8;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(54, 174, 201, 0.45);
}

.launch-btn:active {
    transform: translateY(0);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 768px) {
    .popup {
        max-width: 100%;
        width: 95%;
        height: 90vh;
        max-height: 90vh;
        border-radius: 12px;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
    }

    .popup.active {
        transform: translate(-50%, -50%) scale(1);
    }

    .popup-topbar {
        padding: 12px 16px;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .topbar-icon {
        left: 16px;
        width: 40px;
        height: 40px;
    }

    .topbar-title {
        font-size: 1.1rem;
    }

    .close-btn {
        position: absolute;
        top: 1px !important;
        right: 0px !important;
        background: none;
        width: 40px;
        height: 40px;
    }

    .close-btn i {
        font-size: 18px;
    }

    .popup-main {
        flex-direction: column;
        height: calc(90vh - 64px);
    }

    .modes-panel {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        flex-shrink: 0;
        height: auto;
        max-height: none;
    }

    .modes-header {
        padding: 12px 16px;
    }

    .modes-list {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 8px;
        padding: 8px 16px 12px 16px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .modes-list::-webkit-scrollbar {
        display: none;
    }

    .mode-item {
        flex-shrink: 0;
        width: auto;
        min-width: 140px;
        margin-bottom: 0;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 10px 12px;
        gap: 8px;
        position: relative;
    }

    .mode-icon-wrapper {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .mode-icon-wrapper svg {
        width: 20px;
        height: 20px;
    }

    .mode-info {
        text-align: center;
        min-width: 0;
    }

    .mode-name {
        font-size: 0.8rem;
        line-height: 1.2;
    }

    .mode-short-desc {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    .mode-check {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 18px;
        height: 18px;
    }

    .mode-check svg {
        width: 10px;
        height: 10px;
    }

    .details-panel {
        padding: 16px 16px 20px 16px;
        flex: 1;
        overflow-y: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .details-header {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        margin-bottom: 16px;
    }

    .details-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        align-self: center;
    }

    .details-icon svg {
        width: 32px;
        height: 32px;
    }

    .details-title-wrap {
        text-align: center;
    }

    .details-title {
        font-size: 1.2rem;
        margin-bottom: 4px;
    }

    .details-subtitle {
        font-size: 0.85rem;
    }

    .details-description {
        margin-bottom: 14px;
    }

    .details-description p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .details-badges {
        justify-content: center;
        margin-bottom: 18px;
    }

    .badge {
        font-size: 0.75rem;
        padding: 4px 10px;
    }

    .settings-section {
        margin-bottom: 16px;
    }

    .settings-title {
        font-size: 0.75rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }

    .toggle-item {
        padding: 12px 14px;
        margin-bottom: 8px;
        border-radius: 8px;
    }

    .toggle-label {
        font-size: 0.85rem;
        gap: 10px;
    }

    .toggle-label svg {
        width: 16px;
        height: 16px;
    }

    .toggle-switch {
        width: 44px;
        height: 24px;
    }

    .toggle-slider:before {
        height: 18px;
        width: 18px;
        left: 3px;
        bottom: 3px;
    }

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(20px);
    }

    .info-box {
        padding: 12px 14px;
        margin-bottom: 18px;
        gap: 10px;
    }

    .info-box svg {
        width: 16px;
        height: 16px;
    }

    .info-box p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    .launch-btn {
        padding: 14px 20px;
        font-size: 0.95rem;
        border-radius: 10px;
        gap: 8px;
        margin-top: auto;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .launch-btn svg {
        width: 18px;
        height: 18px;
    }

    .classroom-settings-section {
        padding-top: 16px;
        margin-top: 16px;
    }

    .classroom-dropdown {
        margin-bottom: 16px;
    }

    .classroom-header {
        margin-bottom: 8px;
    }

    .classroom-label {
        font-size: 0.85rem;
    }

    .classroom-select {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 6px;
        padding-right: 36px;
        background-size: 14px;
        background-position: right 10px center;
    }
}

@media (max-width: 480px) {
    .popup {
        width: 98%;
        height: 92vh;
        max-height: 92vh;
        border-radius: 10px;
    }

    .topbar-icon {
        display: none;
    }

    .topbar-title {
        font-size: 1rem;
        padding: 0 10px;
    }

    .close-btn {
        position: absolute;
        top: 1px !important;
        right: 0px !important;
        background: none;
        width: 36px;
        height: 36px;
    }

    .close-btn i {
        font-size: 16px;
    }

    .popup-topbar {
        padding: 10px 12px;
    }

    .modes-list {
        padding: 6px 12px 10px 12px;
        gap: 6px;
    }

    .mode-item {
        min-width: 120px;
        padding: 8px 10px;
        gap: 6px;
    }

    .mode-icon-wrapper {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .mode-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }

    .mode-name {
        font-size: 0.75rem;
        font-weight: 600;
    }

    .mode-short-desc {
        font-size: 0.65rem;
    }

    .mode-check {
        top: 4px;
        right: 4px;
        width: 16px;
        height: 16px;
    }

    .mode-check svg {
        width: 8px;
        height: 8px;
    }

    .details-panel {
        padding: 12px 12px 16px 12px;
        display: flex;
        flex-direction: column;
    }

    .details-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .details-icon {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    .details-icon svg {
        width: 28px;
        height: 28px;
    }

    .details-title {
        font-size: 1.1rem;
    }

    .details-subtitle {
        font-size: 0.8rem;
    }

    .details-description p {
        font-size: 0.8rem;
    }

    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .settings-title {
        font-size: 0.7rem;
    }

    .toggle-item {
        padding: 10px 12px;
        margin-bottom: 6px;
    }

    .toggle-label {
        font-size: 0.8rem;
        gap: 8px;
    }

    .toggle-label svg {
        width: 14px;
        height: 14px;
    }

    .toggle-switch {
        width: 40px;
        height: 22px;
    }

    .toggle-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    }

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(30px);
    }

    .info-box {
        padding: 10px 12px;
        margin-bottom: 14px;
    }

    .info-box p {
        font-size: 0.75rem;
    }

    .launch-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-top: auto;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .launch-btn svg {
        width: 16px;
        height: 16px;
    }

    .classroom-label {
        font-size: 0.8rem;
    }

    .classroom-select {
        padding: 8px 12px;
        font-size: 0.85rem;
        padding-right: 32px;
        background-size: 12px;
        background-position: right 8px center;
    }
}

/* ================================
   DUAL LAUNCH BUTTONS
   ================================ */

.dual-launch-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.dual-launch-buttons .launch-btn {
    flex: 1;
    margin-top: 0;
}

.launch-controller {
    background: #2c8490;
}

.launch-controller:hover {
    background: #2a9bb8;
}

.launch-presenter {
    background: #2c8490;
}

.launch-presenter:hover {
    background: #237179;
}

/* ================================
   TEAM NAMES SECTION (IN MAIN POPUP)
   ================================ */

.team-section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.team-header .settings-title {
    color: #1e293b;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
}

.autofill-btn {
    background: #4fd1c7;
    color: #1a202c;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.autofill-btn:hover {
    background: #38b2ac;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.autofill-btn img {
    width: 16px;
    height: 16px;
}

.autofill-btn span {
    color: #1a202c;
    font-weight: 600;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.team-item {
    display: flex;
    gap: 12px;
    align-items: center;
    background: #f8fafc;
    padding: 4px 4px 4px 16px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.team-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.team-input {
    flex: 1;
    padding: 12px 0;
    border: none;
    background: transparent;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
}

.team-input::placeholder {
    color: #64748b;
}

.team-input:focus {
    color: #1e293b;
}

.delete-team-btn {
    background: #f1f5f9;
    border: none;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #64748b;
}

.delete-team-btn:hover {
    background: #fecaca;
    color: #dc2626;
    transform: scale(1.05);
}

.delete-team-btn svg {
    width: 16px;
    height: 16px;
}

.add-team-btn {
    width: 100%;
    background: #f8fafc;
    color: #64748b;
    border: 2px dashed #cbd5e1;
    padding: 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    margin-bottom: 12px;
}

.add-team-btn:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #475569;
    transform: translateY(-1px);
}

.add-team-btn svg {
    width: 16px;
    height: 16px;
    color: #4fd1c7;
}

.team-info {
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.create-team-link {
    color: #4fd1c7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.create-team-link:hover {
    color: #38b2ac;
    text-decoration: underline;
}

/* ================================
   GAME SETTINGS SECTION (IN MAIN POPUP)
   ================================ */

.game-settings-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
}

/* ================================
   SETTINGS POPUP (GAME SETTINGS SCREEN)
   ================================ */

.settings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 480px;
    max-height: 85vh;
    background: #3d5a5c;
    border-radius: 12px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.settings-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.settings-popup-header {
    background: #2c8490;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.settings-popup-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.settings-popup-header .close-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.settings-popup-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.settings-popup-header .close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.settings-popup-header .close-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.settings-popup-header .close-btn i {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.settings-popup-content {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

/* Settings Team Section */
.settings-team-section {
    margin-bottom: 24px;
}

.settings-team-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
}

.settings-label {
    font-size: 1rem;
    font-weight: 600;
    color: white;
}

.settings-autofill-btn {
    background: #2c8490;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.settings-autofill-btn:hover {
    background: #2a9bb8;
    transform: translateY(-1px);
}

.settings-team-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.settings-team-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.settings-team-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    background: #4a6668;
    color: white;
    transition: all 0.2s ease;
}

.settings-team-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.settings-team-input:focus {
    outline: none;
    background: #556e70;
    box-shadow: 0 0 0 2px rgba(38, 208, 206, 0.3);
}



.settings-add-team-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    padding: 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.settings-add-team-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.settings-team-info {
    margin-top: 12px;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.settings-create-team-link {
    color: #2c8490;
    text-decoration: none;
    font-weight: 600;
}

.settings-create-team-link:hover {
    text-decoration: underline;
    color: #2a9bb8;
}

/* Settings Toggles */
.settings-toggles {
    margin-bottom: 24px;
}

.settings-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.settings-toggle-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.settings-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.settings-toggle-label svg {
    color: #2c8490;
}

/* Settings Play Button */
.settings-play-btn {
    width: 100%;
    background: #2c8490;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.settings-play-btn:hover {
    background: #2a9bb8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(54, 174, 201, 0.3);
}

.settings-play-btn:active {
    transform: translateY(0);
}

/* ================================
   CLASSROOM SETTINGS SECTION
   ================================ */

.classroom-settings-section {
    border-top: 1px solid #e5e7eb;
    padding-top: 20px;
    margin-top: 20px;
}

.classroom-dropdown {
    margin-bottom: 20px;
}

.classroom-header {
    margin-bottom: 12px;
}

.classroom-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.classroom-select-wrapper {
    position: relative;
}

.classroom-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.classroom-select:focus {
    outline: none;
    border-color: #2c8490;
    background: white;
    box-shadow: 0 0 0 3px rgba(54, 174, 201, 0.1);
}

.classroom-select:hover {
    border-color: #9ca3af;
    background: white;
}

.classroom-select option {
    padding: 8px 12px;
    background: white;
    color: #374151;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */

/* ================================
   LANDSCAPE ORIENTATION FIXES
   ================================ */

/* Landscape mode for tablets and phones */
@media (max-width: 1024px) and (orientation: landscape) {
    .popup {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }

    .popup.active {
        transform: none;
    }

    .popup-topbar {
        padding: 8px 16px;
        min-height: 48px;
    }

    .topbar-title {
        font-size: 1rem;
    }

    .close-btn {
        width: 36px;
        height: 36px;
        right: 12px;
    }

    .close-btn i {
        font-size: 16px;
    }

    .popup-main {
        flex-direction: row;
        height: calc(100vh - 48px);
    }

    .modes-panel {
        width: 280px;
        border-right: 1px solid #e2e8f0;
        border-bottom: none;
        flex-shrink: 0;
    }

    .modes-header {
        padding: 8px 12px;
    }

    .modes-list {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
        overflow-y: auto;
        gap: 6px;
        padding: 8px 12px;
    }

    .mode-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        padding: 8px 12px;
        gap: 10px;
        width: 100%;
        min-width: auto;
    }

    .mode-icon-wrapper {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }

    .mode-icon-wrapper svg {
        width: 18px;
        height: 18px;
    }

    .mode-info {
        text-align: left;
        flex: 1;
    }

    .mode-name {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .mode-short-desc {
        font-size: 0.7rem;
    }

    .mode-check {
        position: static;
        width: 18px;
        height: 18px;
        margin-left: auto;
    }

    .details-panel {
        flex: 1;
        padding: 12px 16px;
        overflow-y: auto;
    }

    .details-header {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        margin-bottom: 12px;
    }

    .details-icon {
        width: 48px;
        height: 48px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .details-icon svg {
        width: 28px;
        height: 28px;
    }

    .details-title-wrap {
        text-align: left;
        flex: 1;
    }

    .details-title {
        font-size: 1.1rem;
        margin-bottom: 2px;
    }

    .details-subtitle {
        font-size: 0.8rem;
    }

    .details-description {
        margin-bottom: 10px;
    }

    .details-description p {
        font-size: 0.8rem;
        line-height: 1.5;
    }

    .details-badges {
        justify-content: flex-start;
        margin-bottom: 12px;
    }

    .badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    .settings-section {
        margin-bottom: 12px;
    }

    .settings-title {
        font-size: 0.7rem;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .toggle-item {
        padding: 8px 12px;
        margin-bottom: 6px;
        border-radius: 6px;
    }

    .toggle-label {
        font-size: 0.8rem;
        gap: 8px;
    }

    .toggle-label svg {
        width: 14px;
        height: 14px;
    }

    /* 
    .toggle-switch {
        width: 40px;
        height: 22px;
    }

    .toggle-slider:before {
        height: 16px;
        width: 16px;
        left: 3px;
        bottom: 3px;
    } */

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(18px);
    }

    .info-box {
        padding: 8px 12px;
        margin-bottom: 12px;
        gap: 8px;
    }

    .info-box svg {
        width: 14px;
        height: 14px;
    }

    .info-box p {
        font-size: 0.75rem;
        line-height: 1.4;
    }

    .launch-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        border-radius: 8px;
        gap: 6px;
        margin-top: 8px;
    }

    .launch-btn svg {
        width: 16px;
        height: 16px;
    }

    .dual-launch-buttons {
        flex-direction: row;
        gap: 8px;
        margin-top: 8px;
    }

    .dual-launch-buttons .launch-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .classroom-settings-section {
        padding-top: 10px;
        margin-top: 10px;
    }

    .classroom-dropdown {
        margin-bottom: 10px;
    }

    .classroom-label {
        font-size: 0.75rem;
        margin-bottom: 6px;
    }

    .classroom-select {
        padding: 6px 10px;
        font-size: 0.8rem;
        border-radius: 4px;
        padding-right: 28px;
        background-size: 12px;
        background-position: right 6px center;
    }
}

/* Small landscape phones (like iPhone in landscape) */
@media (max-width: 768px) and (orientation: landscape) and (max-height: 450px) {
    .popup-topbar {
        padding: 6px 12px;
        min-height: 40px;
    }

    .topbar-title {
        font-size: 0.9rem;
    }

    .close-btn {
        width: 32px;
        height: 32px;
        right: 8px;
    }

    .close-btn i {
        font-size: 14px;
    }

    .popup-main {
        height: calc(100vh - 40px);
    }

    .modes-panel {
        width: 240px;
    }

    .modes-header {
        padding: 6px 10px;
    }

    .modes-list {
        padding: 6px 10px;
        gap: 4px;
    }

    .mode-item {
        padding: 6px 10px;
        gap: 8px;
    }

    .mode-icon-wrapper {
        width: 28px;
        height: 28px;
    }

    .mode-icon-wrapper svg {
        width: 16px;
        height: 16px;
    }

    .mode-name {
        font-size: 0.75rem;
    }

    .mode-short-desc {
        font-size: 0.65rem;
    }

    .mode-check {
        width: 16px;
        height: 16px;
    }

    .details-panel {
        padding: 8px 12px;
    }

    .details-header {
        gap: 8px;
        margin-bottom: 8px;
    }

    .details-icon {
        width: 40px;
        height: 40px;
    }

    .details-icon svg {
        width: 24px;
        height: 24px;
    }

    .details-title {
        font-size: 1rem;
    }

    .details-subtitle {
        font-size: 0.75rem;
    }

    .details-description p {
        font-size: 0.75rem;
    }

    .badge {
        font-size: 0.65rem;
        padding: 2px 6px;
    }

    .settings-title {
        font-size: 0.65rem;
        margin-bottom: 6px;
        padding-bottom: 4px;
    }

    .toggle-item {
        padding: 6px 10px;
        margin-bottom: 4px;
    }

    .toggle-label {
        font-size: 0.75rem;
        gap: 6px;
    }

    .toggle-label svg {
        width: 12px;
        height: 12px;
    }

    .toggle-switch {
        width: 36px;
        height: 20px;
    }

    .toggle-slider:before {
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
    }

    .toggle-switch input:checked+.toggle-slider:before {
        transform: translateX(30px);
    }

    .info-box {
        padding: 6px 10px;
        margin-bottom: 8px;
    }

    .info-box p {
        font-size: 0.7rem;
    }

    .launch-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-top: 6px;
    }

    .dual-launch-buttons {
        gap: 6px;
        margin-top: 6px;
    }

    .dual-launch-buttons .launch-btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }

    .classroom-select {
        padding: 4px 8px;
        font-size: 0.75rem;
        padding-right: 24px;
        background-size: 10px;
        background-position: right 4px center;
    }
}

/* Additional Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .dual-launch-buttons {
        flex-direction: column;
        gap: 8px;
        margin-top: auto;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .dual-launch-buttons .launch-btn {
        padding: 12px 18px;
        font-size: 0.9rem;
    }

    .settings-popup {
        width: 95%;
        max-height: 90vh;
        border-radius: 8px;
    }

    .settings-popup-content {
        padding: 16px;
    }

    .team-header,
    .settings-team-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .autofill-btn,
    .settings-autofill-btn {
        width: 100%;
        justify-content: center;
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .team-section {
        padding: 16px;
        margin-bottom: 16px;
        background: white;
        border: 1px solid #e2e8f0;
    }

    .team-item {
        padding: 4px 4px 4px 12px;
        gap: 8px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .team-item:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }

    .team-input {
        padding: 10px 0;
        font-size: 0.9rem;
        color: #1e293b;
    }

    .team-input::placeholder {
        color: #64748b;
    }

    .delete-team-btn {
        padding: 6px;
        background: #f1f5f9;
        color: #64748b;
    }

    .delete-team-btn:hover {
        background: #fecaca;
        color: #dc2626;
    }

    .add-team-btn {
        padding: 10px;
        font-size: 0.85rem;
        margin-bottom: 10px;
        background: #f8fafc;
        color: #64748b;
        border: 2px dashed #cbd5e1;
    }

    .add-team-btn:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
        color: #475569;
    }
}

@media (max-width: 480px) {
    .dual-launch-buttons {
        gap: 6px;
        margin-top: auto;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .dual-launch-buttons .launch-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .settings-popup {
        width: 98%;
        border-radius: 6px;
    }

    .settings-popup-content {
        padding: 12px;
    }

    .team-section {
        padding: 12px;
        margin-bottom: 12px;
        background: white;
        border: 1px solid #e2e8f0;
    }

    .team-header .settings-title {
        font-size: 0.9rem;
        color: #1e293b;
    }

    .autofill-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .team-item {
        padding: 3px 3px 3px 10px;
        gap: 6px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

    .team-item:hover {
        background: #f1f5f9;
        border-color: #cbd5e1;
    }

    .team-input {
        padding: 8px 0;
        font-size: 0.85rem;
        color: #1e293b;
    }

    .team-input::placeholder {
        color: #64748b;
    }

    .delete-team-btn {
        padding: 5px;
        background: #f1f5f9;
        color: #64748b;
    }

    .delete-team-btn:hover {
        background: #fecaca;
        color: #dc2626;
    }

    .delete-team-btn svg {
        width: 14px;
        height: 14px;
    }

    .add-team-btn {
        padding: 8px;
        font-size: 0.8rem;
        margin-bottom: 8px;
        background: #f8fafc;
        color: #64748b;
        border: 2px dashed #cbd5e1;
    }

    .add-team-btn:hover {
        background: #f1f5f9;
        border-color: #94a3b8;
        color: #475569;
    }

    .add-team-btn svg {
        width: 14px;
        height: 14px;
    }

    .team-info {
        font-size: 0.8rem;
        color: #64748b;
    }
}

/* ================================
   TEAM DROPDOWN SECTION
   ================================ */

.team-dropdown {
    margin-bottom: 16px;
    background: rgba(44, 132, 144, 0.05);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid rgba(44, 132, 144, 0.2);
}

.team-dropdown-header {
    margin-bottom: 12px;
}

.team-dropdown-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
}

.team-select-wrapper {
    position: relative;
}

.team-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.95rem;
    background: #f9fafb;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.team-select:focus {
    outline: none;
    border-color: #2c8490;
    background: white;
    box-shadow: 0 0 0 3px rgba(54, 174, 201, 0.1);
}

.team-select:hover {
    border-color: #9ca3af;
    background: white;
}

.team-select option {
    padding: 8px 12px;
    background: white;
    color: #374151;
}

/* Participant Card Styles */
.participant-card {
    background: white;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.participant-card-body {
    padding: 16px;
}

.participant-team-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.participant-member-count {
    font-size: 0.9rem;
    color: #4fd1c7;
    margin: 0 0 12px 0;
    font-weight: 500;
}

.participant-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.myparticipantlist {
    display: flex;
    align-items: center;
    padding: 8px;
    background: #f8f9fa;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.myparticipantlist:hover {
    background: #e9ecef;
}

.myparticipantlist img {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.myparticipantlist span {
    margin-left: 10px;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Mobile Responsive for Team Dropdown */
@media (max-width: 768px) {
    .team-dropdown {
        padding: 12px;
        margin-bottom: 12px;
    }

    .team-dropdown-label {
        font-size: 0.85rem;
    }

    .team-select {
        padding: 10px 14px;
        font-size: 0.9rem;
        padding-right: 36px;
        background-size: 14px;
        background-position: right 10px center;
    }

    .participant-card-body {
        padding: 12px;
    }

    .participant-team-name {
        font-size: 1rem;
    }

    .participant-member-count {
        font-size: 0.85rem;
    }

    .myparticipantlist {
        padding: 6px;
    }

    .myparticipantlist span {
        font-size: 0.85rem;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .team-dropdown {
        padding: 10px;
        margin-bottom: 10px;
    }

    .team-dropdown-label {
        font-size: 0.8rem;
    }

    .team-select {
        padding: 8px 12px;
        font-size: 0.85rem;
        padding-right: 32px;
        background-size: 12px;
        background-position: right 8px center;
    }

    .participant-card-body {
        padding: 10px;
    }

    .participant-team-name {
        font-size: 0.95rem;
    }

    .participant-member-count {
        font-size: 0.8rem;
    }

    .myparticipantlist {
        padding: 5px;
    }

    .myparticipantlist img {
        width: 22px;
        height: 22px;
    }

    .myparticipantlist span {
        font-size: 0.8rem;
        margin-left: 6px;
    }
}

/* ================================
   SOLO SETTINGS POPUP
   ================================ */

.solo-settings-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 95%;
    max-width: 900px;
    max-height: 80vh;
    background: linear-gradient(135deg, #2c8490 0%, #237179 50%, #1e5a61 100%);
    border-radius: 16px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    margin-top: 20px;
}

.solo-settings-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.solo-settings-header {
    background: #2c8490;
    padding: 24px 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    border-bottom: none;
}

.solo-settings-header h2 {
    color: white;
    font-size: 1.6rem;
    font-weight: 800;
    margin: 0;
    text-align: center;
    letter-spacing: -0.02em;
}

.solo-settings-header .close-btn {
    top: 0;
    position: absolute;
    right: 24px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
    z-index: 10;
}

.solo-settings-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.solo-settings-header .close-btn:active {
    transform: rotate(90deg) scale(0.95);
}

.solo-settings-header .close-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 2px;
}

.solo-settings-header .close-btn i {
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.solo-settings-content {
    display: flex;
    flex: 1;
    overflow: hidden;
    padding: 0;
}

/* Left Panel: Quiz Settings */
.solo-settings-left {
    width: 35%;
    background: linear-gradient(180deg, #f0fdfa 0%, #f8fafc 100%);
    border-right: 1px solid rgba(44, 132, 144, 0.2);
    padding: 32px 28px;
    overflow-y: auto;
}

.solo-settings-section h3 {
    color: #1e293b;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(44, 132, 144, 0.3);
    letter-spacing: -0.01em;
}

.solo-toggle-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(44, 132, 144, 0.15);
}

.solo-toggle-item:last-child {
    border-bottom: none;
}

.solo-toggle-label {
    color: #1e293b;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Right Panel: Results Settings */
.solo-settings-right {
    flex: 1;
    background: #F8FAFC;
    padding: 32px 28px;
    overflow-y: auto;
}

.solo-results-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 28px;
    padding: 20px;
    background: rgba(44, 132, 144, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(44, 132, 144, 0.2);
}

.solo-results-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.solo-result-item {
    background: rgba(44, 132, 144, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(44, 132, 144, 0.2);
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.solo-result-item:hover {
    border-color: rgba(44, 132, 144, 0.4);
    background: rgba(44, 132, 144, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 132, 144, 0.2);
}

.solo-result-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 12px;
}

.solo-result-title {
    color: #1e293b;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}



.solo-result-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(44, 132, 144, 0.3);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    color: #1e293b;
    margin-bottom: 14px;
    transition: all 0.2s ease;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.solo-result-input::placeholder {
    color: rgba(30, 41, 59, 0.5);
}

.solo-result-input:focus {
    outline: none;
    background: white;
    border-color: #2c8490;
    box-shadow: 0 0 0 3px rgba(44, 132, 144, 0.1);
}

.solo-score-requirement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.solo-score-value {
    color: #2c8490;
    font-weight: 800;
    font-size: 1.1rem;
}



/* Solo Settings Footer */
.solo-settings-footer {
    background: #f8fafc;
    padding: 28px 32px;
    border-top: 1px solid rgba(44, 132, 144, 0.2);
    flex-shrink: 0;
}

.solo-play-btn {
    width: 100%;
    background: #2c8490;
    color: white;
    border: none;
    padding: 18px 32px;
    border-radius: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 6px 20px rgba(44, 132, 144, 0.3);
}

.solo-play-btn:hover {
    background: linear-gradient(135deg, #38bdf8 0%, #2c8490 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(44, 132, 144, 0.4);
}

.solo-play-btn:active {
    transform: translateY(-1px);
}

/* Solo Launch Buttons */
.dual-launch-buttons .launch-solo-play {
    background: #2c8490;
}

.dual-launch-buttons .launch-solo-play:hover {
    background: #2a9bb8;
}

.dual-launch-buttons .launch-solo-share {
    background: #2c8490;

}

.dual-launch-buttons .launch-solo-share:hover {
    background: #2a9bb8;
}

/* Mobile Responsive for Solo Settings */
@media (max-width: 768px) {
    .solo-settings-popup {
        width: 98%;
        max-height: 92vh;
        border-radius: 8px;
    }

    .solo-settings-content {
        flex-direction: column;
    }

    .solo-settings-left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #4a5f7a;
        padding: 16px;
    }

    .solo-settings-right {
        padding: 16px;
    }

    .solo-settings-section h3 {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .solo-toggle-item {
        padding: 12px 0;
    }

    .solo-toggle-label {
        font-size: 0.9rem;
    }

    .solo-results-description {
        font-size: 0.85rem;
        padding: 12px;
        margin-bottom: 16px;
    }

    .solo-result-item {
        padding: 12px;
    }

    .solo-result-input {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .solo-score-requirement {
        font-size: 0.85rem;
    }

    .solo-add-result-btn {
        padding: 12px;
        font-size: 0.9rem;
    }

    .solo-settings-footer {
        padding: 16px;
    }

    .solo-play-btn {
        padding: 14px 20px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .solo-settings-popup {
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .solo-settings-header {
        padding: 16px 20px;
    }

    .solo-settings-header h2 {
        font-size: 1.3rem;
    }

    .solo-settings-left,
    .solo-settings-right {
        padding: 12px;
    }

    .solo-settings-section h3 {
        font-size: 1rem;
        margin-bottom: 12px;
    }

    .solo-toggle-item {
        padding: 10px 0;
    }

    .solo-toggle-label {
        font-size: 0.85rem;
    }

    .solo-results-description {
        font-size: 0.8rem;
        padding: 10px;
        margin-bottom: 12px;
    }

    .solo-result-item {
        padding: 10px;
    }

    .solo-result-input {
        padding: 8px 10px;
        font-size: 0.85rem;
    }

    .solo-score-requirement {
        font-size: 0.8rem;
    }

    .solo-add-result-btn {
        padding: 10px;
        font-size: 0.85rem;
    }

    .solo-settings-footer {
        padding: 12px;
    }

    .solo-play-btn {
        padding: 12px 18px;
        font-size: 1rem;
    }
}