* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

html, body {
    padding: 0;
    margin: 0;
    height: 100%;
    width: 100%;
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    color: #212F3C;
    user-select: none;
}

#full-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 99999;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

#full-loading.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Alert Boxes */
.alert {
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-size: 14px;
}

.alert-warning {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.alert-warning i {
    color: #ffc107;
    margin-right: 8px;
}

.alert-warning strong {
    color: #856404;
}

.alert-warning ul {
    list-style-type: disc;
}

.alert-warning ul li {
    margin: 5px 0;
}

.loading-background {
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(118, 75, 162, 0.3) 0%, transparent 50%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

#full-loading > .box {
    position: relative;
    z-index: 1;
}

.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-container > img {
    width: 140px;
    height: 140px;
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3));
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    border: 3px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: pulseRing 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

#full-loading > .box > .label {
    font-size: 42px;
    color: #FFFFFF;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: 2px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out;
}

#full-loading > .box > .sub-label {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin-bottom: 40px;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.loading-bar {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    margin: 0 auto 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #ffffff 0%, #f1c40f 50%, #ffffff 100%);
    background-size: 200% 100%;
    border-radius: 10px;
    animation: progressBar 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(241, 196, 15, 0.6);
}

@keyframes progressBar {
    0% {
        width: 0%;
        background-position: 0% 50%;
    }
    50% {
        width: 70%;
        background-position: 100% 50%;
    }
    100% {
        width: 100%;
        background-position: 200% 50%;
    }
}

.loading-text {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.loading-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    animation: fadeInUp 0.8s ease-out 0.8s both;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: dotBounce 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotBounce {
    0%, 80%, 100% { 
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% { 
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page {
    display: flex;
    flex-direction: row;
    width: 100%;
    height: 100%;
    position: relative;
}

.page > .main {
    height: 100%;
    flex-grow: 1;

    display: flex;
    flex-direction: column;

    overflow: hidden;
    position: relative;
}

.page > .main > header {
    background-color: #F1C40F;
    box-shadow: 0 0 10px rgb(0 0 0 / 39%);
    z-index: 99;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.page > .main > .center {

}

/* Brand block (logo + two-line text) */
.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #FFF;
    margin-left: 20px; /* เว้นจากปุ่มเมนูด้านซ้าย */
}
.header-brand .brand-logo {
    width: 42px;
    height: 42px;
    display: block;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.28));
}
.header-brand .brand-text { line-height: 1.1; display: flex; flex-direction: column; }
.header-brand .brand-name { font-size: 22px; font-weight: 700; letter-spacing: .15px; }
.header-brand .brand-sub { font-size: 12px; font-weight: 400; letter-spacing: .3px; opacity: .95; }

.header-logo {
    font-size: 24px;
    font-weight: bold;
    color: #FFF;
    padding: 20px 30px;
}

.embed .header-logo {
    font-size: 18px;
    padding: 10px 10px;
}

ul.switch-mode {
    padding: 0;
    margin: 0;
    background-color: #B7950B;
    border-radius: 100px;
    display: flex;
    flex-direction: row;
    padding: 6px;
}

ul.switch-mode > li {
    list-style: none;
    padding: 10px 16px;
    color: #FFF;
    cursor: pointer;
    transition: background-color 300mS;
    border-radius: 100px;
}

ul.switch-mode > li.active {
    background-color: #FFF;
    color: #B7950B;
}

.embed ul.switch-mode {
    padding: 4px;
}

.embed ul.switch-mode > li {
    padding: 4px 8px;
    font-size: 12px;
}

ul.switch-mode.small {
    padding: 4px;
}

ul.switch-mode.small > li {
    padding: 6px 10px;
    font-size: 14px;
}

ul.top-bar-button {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    padding-right: 20px;
}

ul.top-bar-button > li {
    list-style: none;
}

ul.top-bar-button > li > button {
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: #FFF;
    outline: none;
    border-radius: 500px;
    background-color: #B7950B;
    border: none;
    margin-right: 10px;
}

ul.top-bar-button > li > button:hover {
    background-color: #9A7D0A;
}

/* Update Button Special Style */
.update-btn {
    position: relative;
    transition: all 0.3s ease;
}

.update-btn.has-update {
    background-color: #E67E22 !important;
    animation: pulse-update 2s infinite;
}

.update-btn.has-update:hover {
    background-color: #D35400 !important;
}

.update-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #E74C3C;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    animation: badge-pulse 1.5s infinite;
}

@keyframes pulse-update {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(230, 126, 34, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(230, 126, 34, 0);
    }
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Notiflix Confirm Button Balance */
[id^="NotiflixConfirmWrap"] .nx-button-group > button {
    min-width: 140px !important;
    flex: 1 !important;
    margin: 0 5px !important;
}

[id^="NotiflixConfirmWrap"] .nx-button-group {
    display: flex !important;
    justify-content: center !important;
    gap: 10px !important;
}

/* WiFi Button Special Style */
#connect-wifi-btn {
    background: #F1C40F !important;
    position: relative;
    animation: pulse-wifi 2s infinite;
}

#connect-wifi-btn:hover {
    background: #D4AC0D !important;
    transform: scale(1.05);
}

#connect-wifi-btn i {
    animation: wifi-signal 1.5s infinite;
}

/* WiFi Status Badge */
.wifi-status-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #F1C40F;
    background: #95a5a6;
    display: none;
}

.wifi-status-badge.connected {
    background: #4CAF50;
    display: block;
    animation: pulse-badge 2s infinite;
}

.wifi-status-badge.connecting {
    background: #ffa500;
    display: block;
    animation: blink-badge 1s infinite;
}

.wifi-status-badge.error {
    background: #f44336;
    display: block;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
    }
    50% {
        box-shadow: 0 0 0 4px rgba(76, 175, 80, 0);
    }
}

@keyframes blink-badge {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes pulse-wifi {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(241, 196, 15, 0);
    }
}

@keyframes wifi-signal {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.embed ul.top-bar-button {
    padding-right: 6px;
}

.embed ul.top-bar-button > li > button {
    width: 30px;
    height: 30px;
    font-size: 14px;
    margin-right: 0px;
}

/*
ul.switch-mode > li:first-child {
    padding-left: 20px;
}

ul.switch-mode > li:last-child {
    padding-right: 20px;
}
*/

.page > .main > section {
    flex-grow: 1;
    height: 100px;
    background-color: #FFFFFF;

    display: flex;
    flex-direction: row;
    width: 100%;
}

/*
#blocks-editor {
    display: flex;
}

#blocks-editor > .block-category {
    width: 100px;
    height: 100%;
    box-shadow: 0 0 10px rgb(0 0 0 / 39%);
    z-index: 3989;
    background-color: #FDFEFE;
    flex-basis: 100px;
    flex-grow: 0;
    flex-shrink: 0;
}

#blocks-editor > .block-category > ul {
    padding: 0;
    margin: 0;
    overflow: auto;
    height: 100%;
}

#blocks-editor > .block-category > ul > li {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    cursor: pointer;
}

#blocks-editor > .block-category > ul > li.active {
    background-color: #ECF0F1;
}

#blocks-editor > .block-category > ul > li > .label {
    font-size: 14px;
    padding: 6px;
    padding-bottom: 10px;
    padding-top: 0;
}

#blocks-editor > .block-category > ul > li.active > .label {
    font-weight: bold;
}

#blocks-editor > .block-category > ul > li > .icon {
    padding: 6px;
    padding-top: 10px;
}

#blocks-editor > .block-category > ul > li > .icon > img {
    width: 60%;
}*/

.blocklyTreeRowContentContainer {
    display: flex;
    flex-direction: column;
}

.blocklyTreeRowContentContainer > .blocklyTreeIcon {
    width: 100%;
    height: auto;
    background: none !important;
    text-align: center;
    visibility: visible;
    padding: 6px;
    padding-top: 10px;
}

.blocklyTreeRowContentContainer > .blocklyTreeIcon > img {
    width: 60%;
}

.blocklyTreeRowContentContainer > .blocklyTreeLabel {
    text-align: center;
    font-size: 14px;
    padding: 6px;
    padding-bottom: 10px;
    padding-top: 0;
}

#blocks-editor > .work-box {
    flex-grow: 1;
    width: 100%;
    height: 100%;
}


#code-editor {
    display: none;
    padding: 10px 0;
}

#code-editor > article {
    width: 100%;
    height: 100%;
}

.page > .main > footer {
    width: 100%;
    box-shadow: 0 0 10px rgb(0 0 0 / 39%);
    z-index: 99;
    background-color: #FFF;
}

.page > .main > footer > .control-box {
    padding: 14px 30px;
    background-color: #212F3C;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.page > .main > footer > .control-box > ul.button-list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.page > .main > footer > .control-box > ul.button-list > li {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page > .main > footer > .control-box > ul.button-list > li > button {
    border-radius: 100%;
    width: 50px;
    height: 50px;
    display: inline-block;
    outline: none;
    font-size: 22px;
    margin-right: 14px;
    border: none;
    background-color: #34495E;
    color: #FFF;
}

.page > .main > footer > .control-box > ul.button-list > li > button > div {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page > .main > footer > .control-box > ul.button-list > li > input {
    margin-right: 14px;
    padding: 10px 14px;
    background-color: #FFF;
    border-radius: 500px;
    border: none;
    font-size: 14px;
    outline: none;
    text-align: center;
    transition: border 300mS, width 300mS;
    border: 2px solid #212F3C;
    width: 140px;
}

.page > .main > footer > .control-box > ul.button-list > li > input:focus {
    border: 2px solid #34495E;
    width: 200px;
}

.page > .main > footer > .control-box > ul.button-list > li > button:hover {
    background-color: #2E4053;
}

.page > .main > footer > .control-box > ul.button-list > li > button.loading i {
    animation: goOutToTop 1.6s;
    transform: translateY(-300%);
}

.page > .main > footer > .control-box > ul.button-list > li > button.loading::before {
    content: '';
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: -3px;
    left: -3px;
    border-radius: 500px;
    border: 3px solid transparent;
    border-top-color: #85929E;
    border-bottom-color: #85929E;

    animation: loadingRotate 1s linear infinite;
}

@keyframes loadingRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes goOutToTop {
    0% {
        transform: translateY(0);
    }
    20% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-300%);
    }
}

.page > .main > footer > .control-box > ul.button-list > li > button.zoom {
    transform: scale(2) translateY(-20px);
    box-shadow: 0 0 6px rgb(0 0 0 / 60%);
}

.page > .main > footer > .status-bar {
    display: flex;
    flex-direction: row;
    font-size: 12px;
    justify-content: space-between;
    color: #FFF;
    background-color: #1C2833;
    align-items: center;
}

.page > .main > footer > .status-bar > div {
    
}

.page > .main > footer > .status-bar > div.left {
    padding-left: 20px;
}

.page > .main > footer > .status-bar > div.right {
    padding-right: 12px;
}

.page > .main > footer > .status-bar > div > ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
}

.page > .main > footer > .status-bar > div > ul > li {
    list-style: none;
    padding: 4px 8px;
    border-left: 1px solid #2C3E50;
}

#blocklyArea {
    width: 100%;
    height: 100%;
}

.blocklyPathLight, .blocklyPathDark {
    display: none;
}

#terminal {
    /* display: flex; */
    flex-direction: column;
    height: 100%;
    z-index: 3979;
    overflow: hidden;
    width: 300px;

    display: none;
    flex-shrink: 0;
}

#terminal-h-resize {
    position: absolute;
    width: 6px;
    height: 100%;
    background-color: #424949;
    cursor: col-resize;
    top: 0;
    right: 0;
    z-index: 3988;
    opacity: 0;
    display: none;
}

#terminal-h-resize:hover,
#terminal-h-resize.active {
    opacity: 1;
}

#terminal-h-resize.active {
    width: 30px;
}

#terminal > header {
    background-color: #7F8C8D;
    position: relative;
    width: 100%;
}

#terminal > header > .title {
    color: #FFF;
    padding: 20px;
    font-size: 24px;
    /* text-align: center; */
    width: 100%;
    box-shadow: 0 0 10px rgb(0 0 0 / 39%);
}

#terminal > header > .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

#terminal > header > .icon > button {
    border-radius: 100px;
    border: none;
    width: 36px;
    height: 36px;
    font-size: 16px;
    outline: none;
    color: #FFF;
    background-color: #616A6B;
}

#terminal > header > .icon > button:hover {
    background-color: #515A5A;
}

#terminal > header > .icon > button > i {
    text-align: center;
}
 
#terminal > section {
    background-color: #000;
    height: 100%;
    flex-grow: 1;
}

.makeVariableStyle {
    fill: #ac5e2e;
}

.makeVariableStyle:hover {
    fill: #733f1f;
}

.makeVariableStyle > .blocklyFlyoutButtonShadow {
    display: none;
}

#NotiflixNotifyWrap {
    z-index: 999999 !important;
}

.dialog {
    position: fixed;
    width: 80%;
    height: 80%;
    top: 10%;
    left: 10%;

    /* display: flex; */
    display: none;
    flex-direction: column;
    z-index: 999999;

    border-radius: 10px;
    box-shadow: 0 0 10px rgb(0 0 0 / 39%);
}

@media screen and (max-width: 1200px) {
    .dialog {
        top: 5%;
        left: 5%;
        width: 90%;
        height: 90%;
    }
}

@media screen and (max-width: 800px) {
    .dialog {
        top: 0%;
        left: 0%;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.dialog::before {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
    content: '';
}

.dialog > header {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    background-color: #F1C40F;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 10px 10px -8px rgb(0 0 0 / 26%);
    z-index: 999999;
}

.dialog > header > .title {
    font-size: 24px;
    padding: 14px 20px;
    color: #FFF;
}

.dialog > header > .icon {
    display: flex;
    flex-direction: row;
    height: 100%;
    position: relative;
}

.dialog > header > .icon > button {
    padding: 0 20px;
    height: 100%;
    background-color: #F1C40F;
    color: #FFF;
    border: none;
    outline: none;
    font-size: 20px;
    margin-left: 10px;
}

.dialog > header > .icon > button:last-child {
    border-radius: 0 10px 0 0;
}

.dialog > header > .icon > button:hover {
    background-color: #D4AC0D;
}

/* Example Action Buttons Styling */
.example-action-btn {
    padding: 6px 12px !important;
    height: auto !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    border: 2px solid transparent !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.example-action-btn i {
    font-size: 14px;
}

.example-action-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    line-height: 1.2;
}

.example-action-btn .btn-text .en {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.example-action-btn .btn-text .th {
    font-size: 10px;
    font-weight: 400;
    opacity: 0.95;
}

.example-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.merge-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff !important;
}

.merge-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(118, 75, 162, 0.35);
}

.replace-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: #fff !important;
}

.replace-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%) !important;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(79, 172, 254, 0.35);
}

.example-action-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.dialog > section {
    width: 100%;
    flex-grow: 1;
    background-color: #F8F9F9;
    border-radius: 0 0 10px 10px;
    overflow: auto;
}

.dialog.show {
    animation: dialogShow 400mS ease;
    opacity: 1;
    display: flex;
    transform: scale(1);
}

.dialog.hide {
    animation: dialogHide 400mS ease;
    opacity: 0;
    display: flex;
    transform: scale(1);
}

@keyframes dialogShow {
    0% {
        transform: scale(0.9);
        opacity: 0;
    }
    60% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes dialogHide {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    40% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(0.9);
        opacity: 0;
    }
}

.add-extension-box {
    position: absolute;
    width: 480px;
    border-radius: 4px;
    background-color: #FFF;
    padding: 20px;
    top: calc(100% + 20px);
    right: 20px;
    box-shadow: 0 2px 3px rgb(0 0 0 / 16%), 0 0 3px rgb(0 0 0 / 17%);
    text-align: center;

    display: none;
}

.add-extension-box label {
    font-weight: bold;
    display: block;
    margin-bottom: 20px;
    text-align: left;
}

.add-extension-box input {
    border-radius: 100px;
    border: 1px solid #ECF0F1;
    padding: 8px 10px;
    width: 100%;
    margin-bottom: 20px;
    outline: none;
}

.add-extension-box input:focus {
    border: 1px solid #D0D3D4;
}

.add-extension-box button {
    background-color: #F1C40F;
    color: #FFF;
    padding: 10px 12px;
    border: none;
    outline: none;
    border-radius: 100px;
    font-size: 14px;
    cursor: pointer;
}

.add-extension-box button:hover {
    background-color: #D4AC0D;
}

.add-extension-box button[type="reset"] {
    background-color: #FFF;
    color: #1C2833;
    border: 1px solid #ECF0F1;
}

.add-extension-box button[type="reset"]:hover {
    background-color: #ECF0F1;
}

#extension-keyword {
    padding: 10px 14px;
    background-color: #FFF;
    border-radius: 500px;
    border: none;
    font-size: 14px;
    outline: none;
    text-align: center;
    transition: border 300mS, width 300mS;
    border: 2px solid #F1C40F;
    width: 140px;
}

#extension-keyword:focus {
    border: 2px solid #D4AC0D;
    width: 200px;
}

.extension-work-box {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 20px;
}

.extension-category-list {
    width: 180px;
    margin: 0;
    padding: 0;
    margin-right: 20px;
    border-radius: 4px;
    background-color: #FFF;
    box-shadow: 0 2px 3px rgb(0 0 0 / 16%), 0 0 3px rgb(0 0 0 / 17%);
    overflow: hidden;
    flex-basis: 180px;
    flex-shrink: 0;
}

.extension-category-list > li {
    list-style: none;
    padding: 10px 16px;
    font-size: 14px;
    border-bottom: 1px #ECF0F1 solid;
}

.extension-category-list > li:last-child {
    border-bottom: none;
}

.extension-category-list > li:hover {
    background-color: #ECF0F1;
}

.extension-category-list > li.active {
    background-color: #F1C40F;
    color: #FFF;
}

.extension-category-list > li.hr {
    padding: 0;
    border-bottom: 2px #ECF0F1 solid;
}

.extension-list {
    padding: 0;
    margin: 0;
    flex-grow: 1;

    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.extension-list > li {
    width: 25%;
    list-style: none;
    padding: 10px;
    padding-top: 0;
}

@media screen and (max-width: 1200px) {
    .extension-category-list { 
        flex-basis: 160px;
    }

    .extension-list > li {
        width: calc(100% / 3);
    }
}

@media screen and (max-width: 800px) {
    .extension-category-list { 
        flex-basis: 140px;
    }

    .extension-category-list > li { 
        font-size: 12px;
    }
    
    .extension-list > li {
        width: 50%;
    }
}

@media screen and (max-width: 600px) {
    .extension-category-list {
        display: none;
    }

    .extension-list > li {
        width: 100%;
    }
}

.extension-box {
    border-radius: 4px;
    background-color: #FFF;
    box-shadow: 0 2px 3px rgb(0 0 0 / 16%), 0 0 3px rgb(0 0 0 / 17%);
    overflow: hidden;
}

.extension-box > .header {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    background-color: #FBFCFC;
    border-bottom: #ECF0F1 1px solid;;
}

.extension-box > .header > .cover {
    width: 80px;
    height: 80px;
    padding: 10px;
}

.extension-box > .header > .cover > img {

}

.extension-box > .header > .detail {
    flex-grow: 1;
    padding: 10px;
    border-left: #ECF0F1 1px solid;
}

.extension-box > .header > .detail > .name {
    font-size: 18px;
    color: #212F3C;
    font-weight: bold;
    margin-bottom: 4px;
}

.extension-box > .header > .detail > .name > .installed-icon {
    color: #2ECC71;
    margin-left: 5px;
    display: none;
}

.extension-box.installed > .header > .detail > .name > .installed-icon {
    display: inline-block;
}

.extension-box > .header > .detail > .author {
    font-size: 12px;
    color: #85929E;
    margin-bottom: 4px;
}

.extension-box > .header > .detail > .other {

}

.extension-box > .header > .detail > .other > span.version {
    font-size: 12px;
    padding: 2px 3px;
    border-radius: 2px;
    background-color: #E74C3C;
    color: #FFF;
}

.extension-box > .header > .detail > .other > a {
    color: #3498DB;
}

.extension-box > .header > .detail > .other > a:hover {
    color: #2E86C1;
}

.extension-box > .description {
    color: #212F3C;
    padding: 10px;
    font-size: 14px;
}

.extension-box > .button {
    padding: 10px;
    padding-top: 0;
}

.extension-box > .button > button {
    width: 100%;
    border-radius: 3px;
    background-color: #FBFCFC;
    border: #ECF0F1 1px solid;
    padding: 6px;
    color: #212F3C;
    outline: none;
    cursor: pointer;
}

.extension-box > .button > button:hover {
    background-color: #F0F3F4;
}

.extension-box > .button > button.extension-install {
    display: block;
}

.extension-box > .button > button.extension-uninstall {
    display: none;
}

.extension-box.installed > .button > button.extension-install {
    display: none;
}

.extension-box.installed > .button > button.extension-uninstall {
    display: block;
}

#github_avatar {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 100px;
}

#open-github-dialog {
    display: none;
}

#github-dialog {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3989;
    padding: 40px 20px;

    display: none;
}

#github-dialog > section {
    background-color: #FFF;
    width: 380px;
    border-radius: 4px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

#github-dialog > section > header > div.title {
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
    position: relative;
}

#github-dialog > section > header > div.title > .close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #B2BABB;
    padding: 10px;
}

#github-dialog > section > header > div.title > .close-btn:hover {
    color: #7F8C8D;
}

#github-dialog > section > header > ul {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin: 0;
    padding: 0;
}

#github-dialog > section > header > ul > li {
    text-align: center;
    padding: 6px;
    flex-grow: 1;
    width: 50%;
    list-style: none;
    border: 1px solid #ECF0F1;
    border-left: none;
    font-size: 14px;
}

#github-dialog > section > header > ul > li:last-child {
    border-right: none;
}

#github-dialog > section > header > ul > li:hover {
    background-color: #F8F9F9;
}

#github-dialog > section > header > ul > li.active {
    border-bottom: 3px solid #F1C40F;
}

#github-dialog > section > section > ul {
    padding: 0;
    margin: 0;
    height: 300px;
    padding: 10px 0;
    overflow: auto;
}

#github-dialog > section > section > ul > li {
    padding: 10px 20px;
    list-style: none;
}

#github-dialog > section > section > ul > li:hover {
    background-color: #F8F9F9;
}

#github-dialog > section > section > ul > li.active {
    background-color: #F1C40F;
    color: #FFF;
}

#github-dialog > section > section > form {
    padding: 20px;
}

#github-dialog > section > section > form > label {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    font-size: 14px;
}


#github-dialog > section > section > form > input {
    display: block;
    width: 100%;
    margin-bottom: 20px;
    border: 1px solid #ECF0F1;
    padding: 6px;
    outline: none;
    border-radius: 4px;
}

#github-dialog > section > section > form > input:focus {
    border-color: #D0D3D4;
}

#github-dialog > section > section > form > label > input {
    margin-bottom: 14px;
}

#github-dialog > section > section .control-button {
    text-align: right;
    padding: 20px;
}

#github-dialog > section > section > form > .control-button {
    padding: 0;
}

#github-dialog > section > section .control-button > button {
    background-color: #F1C40F;
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    outline: none;;
}

#github-dialog > section > section .control-button > button:hover {
    background-color: #D4AC0D;
}

#github-dialog-open {
    display: block;
}

#github-dialog-new {
    display: none;
}

#port-select-dialog {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3990;
    padding: 40px 20px;

    display: none;
}

#port-select-dialog > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#port-select-dialog > div > section {
    background-color: #FFF;
    width: 380px;
    border-radius: 4px;
}

#port-select-dialog > div > section > header {
    position: relative;
}

#port-select-dialog > div > section > header > div.title {
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
}

#port-select-dialog > div > section > header > .close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #B2BABB;
    padding: 10px;
}

#port-select-dialog > div > section > header > .close-btn:hover {
    color: #7F8C8D;
}

#port-select-dialog > div > section > section > ul {
    padding: 0;
    margin: 0;
    height: 300px;
    padding: 10px 0;
    overflow: auto;
}

#port-select-dialog > div > section > section > ul > li {
    padding: 10px 20px;
    list-style: none;
}

#port-select-dialog > div > section > section > ul > li:hover {
    background-color: #F8F9F9;
}

#port-select-dialog > div > section > section > ul > li.active {
    background-color: #F1C40F;
    color: #FFF;
}

#port-select-dialog > div > section > section > .control-button {
    text-align: right;
    padding: 20px;
}

#port-select-dialog > div > section > section > .control-button > button {
    background-color: #F1C40F;
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    outline: none;;
}

#port-select-dialog > div > section > section > .control-button > button:hover {
    background-color: #D4AC0D;
}

#project-create-dialog {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3989;
    padding: 40px 20px;
    overflow: auto;

    display: none;
}

#project-create-dialog > section {
    background-color: #FFF;
    width: 100%;
    border-radius: 4px;
}

#project-create-dialog > section > header {
    position: relative;
}

#project-create-dialog > section > header > div.title {
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
}

#project-create-dialog > section > header > .close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #B2BABB;
    padding: 10px;
}

#project-create-dialog > section > header > .close-btn:hover {
    color: #7F8C8D;
}

#project-create-dialog > section > section {
    padding: 20px;
}

#project-create-dialog > section > section .control {
    margin-bottom: 20px;
}

#project-create-dialog > section > section .control > * {
    display: block;
    /* width: 100%; */
}

#project-create-dialog > section > section .control > label {
    margin-bottom: 10px;
}

#project-create-dialog > section > section > form input {
    /* display: block; */
    /* width: 100%; */
    margin-bottom: 20px;
    border: 1px solid #ECF0F1;
    padding: 6px;
    outline: none;
    border-radius: 4px;
}

#project-create-dialog > section > section > form input:focus {
    border-color: #D0D3D4;
}

#project-create-dialog > section > section > form label {
    font-size: 14px;
}

#project-create-dialog > section button {
    background-color: #F1C40F;
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    outline: none;;
}

#project-create-dialog > section button:hover {
    background-color: #D4AC0D;
}

#boards-tags-list {
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
    display: flex !important;
    flex-direction: row;
}

#boards-tags-list > li {
    list-style: none;
    margin-right: 10px;
    padding: 4px 8px;
    font-size: 14px;
    border-radius: 50px;
    border: 1px solid #ECF0F1;
    cursor: pointer;
}

#boards-tags-list > li:hover {
    border-color: #ABB2B9;
}

#boards-tags-list > li.active {
    border-color: #FFF;
    background-color: #F1C40F;
    color: #FFF;
}

#boards-tags-list > li.active:hover {
    border-color: #FFF;
}

.image-select {
    width: 100%;
}

.image-select > ul {
    display: flex;
    flex-direction: row;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.image-select > ul > li {
    list-style: none;
}

.image-select > ul > li > div {
    margin-right: 20px;
    border: 1px solid #ECF0F1;
    border-radius: 4px;
    padding: 10px;
    margin-bottom: 20px;;
}

.image-select > ul > li > div:hover {
    border: 1px solid #D0D3D4;
}

.image-select > ul > li > div.active {
    border: 3px solid #F1C40F;
}

.image-select > ul > li > div > .image {
    margin-bottom: 10px;
}

.image-select > ul > li > div > .name {
    text-align: center;
    font-size: 14px;
}

#hardware-select > ul > li {
    width: 20%;
}

@media screen and (max-width: 1200px) {
    #hardware-select > ul > li {
        width: 25%;
    }
}

@media screen and (max-width: 800px) {
    #hardware-select > ul > li {
        width: calc(100% / 3);
    }
}

#hardware-select > ul > li.show-when-click-see-more {
    display: none;
}

#hardware-select > #board-see-more-btn {
    width: 100%;
    color: #1C2833;
    background-color: #E5E7E9;
}

#hardware-select > #board-see-more-btn:hover {
    background-color: #D7DBDD;
}

.box-level-select {
    height: 0;
    overflow: hidden;
    margin-bottom: 0 !important;
}

#level-select > ul > li img {
    width: 100px;
}

#firmware-upgrade-dialog {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3989;
    padding: 40px 20px;

    display: none;
}

#firmware-upgrade-dialog.fullScreen {
    display: block !important;
    padding: 0;
}

#firmware-upgrade-dialog  > section {
    background-color: #FFF;
    max-width: 580px;
    border-radius: 4px;
    margin: auto;
}

#firmware-upgrade-dialog.fullScreen  > section {
    max-width: 100%;
    width: 100vw;
    height: 100vh;
    border-radius: 0;
}

#firmware-upgrade-dialog  > section > header {
    position: relative;
}

#firmware-upgrade-dialog  > section > header > div.title {
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
}

#firmware-upgrade-dialog  > section > header > .close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #B2BABB;
    padding: 10px;
}

#firmware-upgrade-dialog.fullScreen  > section > header > .close-btn {
    display: none;
}

#firmware-upgrade-dialog  > section > header > .close-btn:hover {
    color: #7F8C8D;
}

#firmware-upgrade-dialog  > section > section {
    padding: 20px;
    padding-top: 0;
    text-align: center;
}

#firmware-upgrade-dialog  > section > section > article {
    display: none;
}

#firmware-upgrade-dialog  > section > section > article.todo {
    /* display: block; */
}

#firmware-upgrade-dialog  > section > section > article.doing {
    /* display: block; */
}

#firmware-upgrade-dialog  > section > section > article.done {
    /* display: block; */
}

#firmware-upgrade-dialog  > section > section > article > p,
#firmware-upgrade-dialog  > section > section > article > select,
#firmware-upgrade-dialog  > section > section > article > .progress-box {
    margin-bottom: 30px;
}

#firmware-upgrade-dialog  > section > section > article > p {
    font-size: 20px;
}

#firmware-upgrade-dialog  > section > section > article > select {
    display: block;
    width: 280px;
    font-size: 20px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #ECF0F1;
    padding: 6px;
    outline: none;
    border-radius: 4px;
}

#firmware-upgrade-dialog  > section > section > article button {
    display: inline-block;
    margin: auto;

    background-color: #F1C40F;
    color: #FFF;
    border: none;
    border-radius: 4px;
    padding: 8px 22px;
    outline: none;;
    font-size: 18px;
}

#firmware-upgrade-dialog  > section > section > article button:hover {
    background-color: #D4AC0D;
}

#firmware-upgrade-dialog  > section > section > article button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#firmware-upgrade-dialog  > section > section > article button:disabled:hover {
    background-color: #F1C40F;
}

#firmware-upgrade-dialog  > section > section > article button#continue-upload {
    background-color: #FFFFFF;
    color: #000;
}

#firmware-upgrade-dialog  > section > section > article button#continue-upload:hover {
    background-color: #ECF0F1;
}

#firmware-upgrade-dialog  > section > section > article > .icon {
    font-size: 120px;
    margin: 40px auto;
}

#firmware-upgrade-dialog  > section > section > article.todo > .icon {
    color: #F1C40F;
}

#firmware-upgrade-dialog  > section > section > article.doing > .icon.loading {
    animation: objectMoveLoading 3s infinite;
}

#firmware-upgrade-dialog .note-for-rp2 {
    margin-top: 15px;
    color: #FF0000;
    font-size: 14px;
    font-weight: bold;
}

@keyframes objectMoveLoading {
    0% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-10px);
    }
    50% {
        transform: translateY(0px);
    }
    100% {
        transform: translateY(0px);
    }
}

#firmware-upgrade-dialog  > section > section > article.done > .icon.success {
    color: #2ECC71;
}

#firmware-upgrade-dialog  > section > section > article.done > .icon.fail {
    color: #E74C3C;
}

#firmware-upgrade-dialog  > section > section > article > .warning {
    color: #FF0000;
    font-size: 16px;
}

#firmware-upgrade-dialog  > section > section > article > .progress-box {
    position: relative;
    width: 100%;
    height: 36px;
    background-color: #F0F3F4;
    border-radius: 6px;
    overflow: hidden;
}

#firmware-upgrade-dialog  > section > section > article > .progress-box > .back-drop {
    width: 50%;
    height: 100%;
    background-color: #2ECC71;
}

#firmware-upgrade-dialog  > section > section > article > .progress-box > .caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#firmware-upgrade-dialog  > section > section > article .close-btn {
    background-color: #FFF;
    color: #424949;
}

#firmware-upgrade-dialog  > section > section > article .close-btn:hover {
    background-color: #F0F3F4;
}

#disconnect-device {
    display: none;
}

#code-share-dialog  {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3989;
    padding: 40px 20px;

    display: none;
}

#code-share-dialog  > section {
    background-color: #FFF;
    max-width: 400px;
    border-radius: 4px;
    margin: auto;
    overflow: hidden;
}

#code-share-dialog  > section > header {
    position: relative;
}

#code-share-dialog  > section > header > div.title {
    padding: 14px;
    font-size: 18px;
    font-weight: bold;
}

#code-share-dialog  > section > header > .close-btn {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    font-size: 14px;
    color: #B2BABB;
    padding: 10px;
}

#code-share-dialog  > section > header > .close-btn:hover {
    color: #7F8C8D;
}

#code-share-dialog .preview-block {
    width: 100%;
    height: 200px;
}

#code-share-dialog > section > section > .bottom-menu {
    display: flex;
    flex-direction: row;
    margin: 0;
    padding: 0;
}

#code-share-dialog > section > section > .bottom-menu > li {
    flex-grow: 1;
    list-style: none;
    border-top: 1px solid #F7F9F9;
    border-right: 1px solid #F7F9F9;
    text-align: center;
}

#code-share-dialog > section > section > .bottom-menu > li:last-child {
    border-right: none;
}

#code-share-dialog > section > section > .bottom-menu > li:hover {
    background-color: #F7F9F9;
}

#code-share-dialog > section > section > .bottom-menu > li > i {
    font-size: 24px;
    padding: 8px;
}

.embed-only {
    display: none;
}

#code-example-dialog {
    z-index: 9998;
}

#code-example-dialog > section {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
    background-color: #FFF;
}

#arduino-console-dialog {
    z-index: 3980 !important;
}

#arduino-console-dialog > section {
    height: 100%;
}

#arduino-console-dialog > section > pre {
    white-space: pre-wrap;
    background-color: #212F3D;
    color: #FFF;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 12px;
    overflow: auto;
    margin: 0;
    height: 100%;
    line-height: 16px;
    user-select: text;
}

#upload-log-dialog {
    z-index: 3989;
    margin: 0;
}

#upload-log-dialog > section {
    height: 100%;
}

#upload-console-log {
    background-color: #212F3D;
    color: #FFF;
    font-family: "Lucida Console", "Courier New", monospace;
    font-size: 12px;
    overflow: auto;
    margin: 0;
    height: 100%;
}

#upload-console-log > .e {
    color: #E74C3C;
}

.example-list {
    width: 500px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 999;
    position: relative;
}

.example-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.example-list > ul {
    padding: 15px 0;
    margin: 0;
    overflow: auto;
    height: 100%;
}

.example-list > ul > li {
    list-style: none;
    padding: 0px 12px;
    margin-bottom: 6px;
}

.example-list > ul > li.sub-header {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #2d3748;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-left: 16px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Main Header (3IN1 EASYKIDS BOARD, EASYKIDS SENSOR MODULES) */
.example-list > ul > li.sub-header.main-header {
    font-size: 15px;
    font-weight: 900;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 14px 20px;
    margin-top: 8px;
    margin-bottom: 16px;
    margin-left: -12px;
    margin-right: -12px;
    border-left: 5px solid #4c51bf;
    border-radius: 8px;
    letter-spacing: 1.2px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.example-list > ul > li.sub-header.main-header i {
    margin-right: 10px;
    font-size: 16px;
}

.example-list > ul > li.no-examples {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #a0aec0;
}

.example-list > ul > li.no-examples > i {
    font-size: 48px;
    margin-bottom: 12px;
    opacity: 0.5;
}

.example-list > ul > li.no-examples > p {
    font-size: 14px;
    margin: 0;
}

.example-list > ul > li > a {
    padding: 14px 16px;
    background: white;
    color: #2d3748;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.example-list > ul > li > a > i {
    color: #667eea;
    font-size: 16px;
    min-width: 20px;
}

.example-list > ul > li > a > span {
    flex: 1;
    font-weight: 300;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.example-list > ul > li > a:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.example-list > ul > li > a:hover > i {
    color: white;
}

.example-list > ul > li.active > a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #5a67d8;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
    transform: translateX(4px);
}

.example-list > ul > li.active > a > i {
    color: white;
}

/* Add to Workspace Button Styles */
#add-example-code-to-workspace {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

#add-example-code-to-workspace:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.5);
}

#add-example-code-to-workspace:active:not(:disabled) {
    transform: translateY(0);
}

#add-example-code-to-workspace:disabled {
    background: linear-gradient(135deg, #cbd5e0 0%, #a0aec0 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#add-example-code-to-workspace > i {
    margin-right: 6px;
}

.code-example-dialog > section {
    overflow: hidden;
}

.code-view {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Example Description Panel */
#example-description-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#example-description-panel .description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 600;
}

#example-description-panel .description-header > i {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

#example-description-panel .description-content {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    padding-left: 28px;
}

.work-box {
    flex-grow: 1;
    height: 100%;
}

.work-box > div {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#noSelectExampleFile {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
}

#noSelectExampleFile > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #a0aec0;
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#noSelectExampleFile > div > i {
    font-size: 100px;
    margin-bottom: 20px;
    color: #cbd5e0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

#noSelectExampleFile > div > span {
    font-size: 18px;
    font-weight: 600;
    color: #718096;
}

/* Blockly hardover
.blocklyToolboxDiv {
    background-color: #FDFEFE !important;
    box-shadow: 0 0 10px rgb(0 0 0 / 39%);
    width: 100% !important;
} */

.blocklyTreeRow {
    padding: 0 !important;
    border: none !important;
    height: auto !important;
    line-height: normal !important;
    /* width: 100px; */
    width: 100%;
    margin-bottom: 0px !important;
}

.blocklyTreeRow.blocklyTreeSelected {
    background-color: #ECF0F1 !important;
}

.blocklyTreeRow > .blocklyTreeIcon {
    display: block !important;
    /* width: 100px; */
    width: 100%;
    text-align: center;
    background-image: none !important;
    height: auto !important;
    padding: 6px;
    padding-top: 10px;
}

.blocklyTreeRow > .blocklyTreeIcon > img {
    width: 60%;
}

.blocklyTreeRow > .blocklyTreeLabel {
    display: block !important;
    text-align: center;
    padding: 6px;
    padding-bottom: 10px;
    padding-top: 0;
    color: #1C2833 !important;
    font-size: 14px;
}

.blocklyTreeSelected .blocklyTreeLabel {
    color: #1C2833 !important;
}

.blocklyFlyoutLabelText {
    font-size: 22px !important;
}

.blocklyMainBackground {
    stroke-width: 0;
    x: 20 !important;
}

.injectionDiv {
    padding-left: 20px !important;
}

/* Scrollbar styles */
::-webkit-scrollbar {
    width: 10px;
}
  

::-webkit-scrollbar-track {
    background-color: #FFF;
}
   
::-webkit-scrollbar-thumb {
    background: #D0D3D4; 
    border-radius: 10px;
    margin: 0 2px;
}
  
::-webkit-scrollbar-thumb:hover {
    background: #B3B6B7; 
}
/*
.blocklyCheckedBox {
    fill: #FF0000 !important;
    fill-opacity: 1 !important;
}
*/

/* Notify hardover */
.notiflix-confirm input {
    width: 100%;
    border-radius: 100px;
    padding: 8px 12px;
    border: #D0D3D4 solid 1px;
    background-color: #F0F3F4;
    outline: none;
}

.notiflix-confirm input:focus {
    border-color: #D0D3D4;
}

#file-explorer-open-btn {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 6px;
    padding-left: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 9999;
    outline: none;
    border-radius: 0 4px 4px 0;
}

#file-explorer-open-btn:hover {
    background-color: #D4AC0D;
}

#file-explorer-open-btn > i {
    font-size: 22px;
    color: #FFF;
}

#file-explorer-dialog {
    position: absolute;
    background-color: rgba(0, 0, 0, 0);
    width: 0;
    height: 0;
    top: 0;
    left: 0;
    z-index: 999;
    transition: background-color 300mS ease-in;
    opacity: 0;
}

#file-explorer-dialog.active {
    width: 100%;
    height: 100%;
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.19);
}

#file-explorer-dialog > article {
    width: 260px;
    height: 100%;
    background-color: #FFF;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
    font-size: 14px;
    color: #2C3E50;
    transform: translateX(-100%);
    transition: transform 300mS ease-in;
}

#file-explorer-dialog.active > article {
    transform: translateX(0);
}

#file-explorer-dialog > article button {
    padding: 0;
    border: none;
    outline: none;
    background: none;
}

#file-explorer-dialog > article > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 22px;
    border-bottom: 1px solid #EAECEE;
}

#file-explorer-dialog > article > header > .subject {
    font-weight: bold;
    font-size: 18px;
}

#file-explorer-dialog > article > header button {
    margin-left: 5px;
    cursor: pointer;
}

#file-explorer-dialog > article > header button > i {
    color: #2C3E50;
    font-size: 16px;
    margin-left: 8px;
}

#file-explorer-dialog > article ul {
    list-style: none;
    margin: 0;
    padding: 0;
    margin-bottom: 10px;
}

#file-explorer-dialog > article ul > li {
    padding: 8px 20px;
    padding-left: 30px;
    margin: 0;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    margin-bottom: 2px;
    position: relative;
}

#file-explorer-dialog > article ul > li:hover {
    background-color: #F8F9F9;
}

#file-explorer-dialog > article ul > li > i {
    margin-right: 5px;
}

#file-explorer-dialog > article ul > li.python > i {
    color: #306998;
}

#file-explorer-dialog > article ul > li.active {
    font-weight: bold;
    background-color: #F8F9F9;
}

#file-explorer-dialog > article ul > li > button.delete-btn {
    outline: none;
    border: none;
    padding: 0;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    position: absolute;
}

#file-explorer-dialog > article ul > li:hover > button.delete-btn {
    opacity: 1;
}

#file-explorer-dialog > article ul > li > button.delete-btn > i {
    font-size: 16px;
    color: #E74C3C;
}

#file-explorer-dialog > article ul > li > button.delete-btn:hover > i {
    color: #CB4335;
    cursor: pointer;
}

/* WiFi Connection Dialog Modal Overlay */
#wifi-connection-dialog.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

/* ===== WiFi Connection Dialog ===== */
#wifi-connection-dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

#wifi-connection-dialog .dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

#wifi-connection-dialog .dialog-content {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 90%;
    animation: slideInUp 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

#wifi-connection-dialog .dialog-header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

#wifi-connection-dialog .dialog-header h3 {
    margin: 0;
    color: white;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

#wifi-connection-dialog .dialog-header h3 i {
    font-size: 28px;
    animation: pulse 2s ease-in-out infinite;
}

#wifi-connection-dialog .dialog-close {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

#wifi-connection-dialog .dialog-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

#wifi-connection-dialog .dialog-body {
    padding: 32px 28px;
    background: white;
}

#wifi-connection-dialog .form-group {
    margin-bottom: 24px;
}

#wifi-connection-dialog .form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 14px;
}

#wifi-connection-dialog .form-group label i {
    color: #667eea;
    font-size: 16px;
}

#wifi-connection-dialog .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: 'Consolas', 'Monaco', monospace;
    background: #f7fafc;
}

#wifi-connection-dialog .form-group input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

#wifi-connection-dialog .form-group small {
    display: block;
    margin-top: 6px;
    color: #718096;
    font-size: 12px;
}

#wifi-connection-dialog .wifi-info {
    padding: 16px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f3e8ff 100%);
    border-left: 4px solid #667eea;
    border-radius: 12px;
    margin-top: 20px;
    font-size: 14px;
    color: #4a5568;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

#wifi-connection-dialog .wifi-info i {
    color: #667eea;
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

#wifi-connection-dialog .dialog-footer {
    padding: 20px 28px;
    background: #f7fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

#wifi-connection-dialog .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

#wifi-connection-dialog .btn-secondary {
    background: #e2e8f0;
    color: #4a5568;
}

#wifi-connection-dialog .btn-secondary:hover {
    background: #cbd5e0;
    transform: translateY(-2px);
}

#wifi-connection-dialog .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#wifi-connection-dialog .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

#wifi-connection-dialog .btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Connected state for WiFi buttons */
#header-connect-wifi.connected,
#connect-wifi.connected {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    animation: pulse 2s ease-in-out infinite;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideInUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Collapsible Category Styles */
.example-list > ul > li.sub-header.collapsible {
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.example-list > ul > li.sub-header.collapsible:hover {
    color: #667eea;
}

.example-list > ul > li.sub-header.collapsible .category-arrow {
    margin-right: 8px;
    font-size: 11px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.example-list > ul > li.category-item {
    overflow: hidden;
}
