* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body,
html {
    height: 100%;
    font-family: sans-serif;
}

.editor-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
    transition: all 0.5s ease;
}

body>.editor-container {
    visibility: hidden;
}

#loading-message {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    font-size: 16px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #fff;
    font-weight: bold;
    z-index: 200;
}

#main__typing--text::after {
    content: '|';
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50%,
    100% {
        opacity: 1;
    }

    25%,
    75% {
        opacity: 0;
    }
}

.editor-container.editor-center,
.editor-container.editor-left,
.editor-container.editor-right {
    transition: all 0.5s ease;
}


#html-editor,
#css-editor,
#js-editor {
    text-align: left;
    direction: ltr;
    white-space: pre;
    width: 100%;
    background: #1d1e22;
    color: #fff;
    font-weight: bold;
}

#html-editor::-webkit-scrollbar,
#css-editor::-webkit-scrollbar,
#js-editor::-webkit-scrollbar {
    display: none;
}

.editors {
    display: flex;
    flex-direction: column;
    text-align: left;
    background: #111;
    position: relative;
}

.panel__search__countend span {
    font-size: 12px;
    color: red;
}

.highlight-match {
    background: yellow;
    color: transparent;
}

.highlight-match.current-match {
    background: orange;
}


.editor-container.editor-center .editors {
    flex-direction: row;
    height: 100%;
    flex: unset;
    width: 100%;
    min-width: unset;
    max-width: unset;
}

@media(min-width:1025px) {
    .editor-container.editor-center {
        flex-direction: column;
    }

    .editor-container.editor-right .editors {
        order: 2;
    }

    .editor-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(30, 30, 30, 0.85);
        color: #0f0;
        font-family: monospace;
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 999;
        pointer-events: none;
        flex-direction: column;
        gap: 10px;
    }

    .editor-overlay .spinner {
        width: 20px;
        height: 20px;
        border: 3px solid #0f0;
        border-top: 3px solid transparent;
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }

    @keyframes spin {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    .calendar-animation {
        display: grid;
        grid-template-columns: repeat(3, 20px);
        grid-gap: 5px;
        margin-bottom: 15px;
    }

    .calendar-animation .day {
        width: 20px;
        height: 20px;
        background: #fff;
        border-radius: 3px;
        animation: dayPulse 1s infinite;
    }

    .calendar-animation .day:nth-child(1) {
        animation-delay: 0s;
    }

    .calendar-animation .day:nth-child(2) {
        animation-delay: 0.1s;
    }

    .calendar-animation .day:nth-child(3) {
        animation-delay: 0.2s;
    }

    .calendar-animation .day:nth-child(4) {
        animation-delay: 0.3s;
    }

    .calendar-animation .day:nth-child(5) {
        animation-delay: 0.4s;
    }

    .calendar-animation .day:nth-child(6) {
        animation-delay: 0.5s;
    }

    .calendar-animation .day:nth-child(7) {
        animation-delay: 0.6s;
    }

    .calendar-animation .day:nth-child(8) {
        animation-delay: 0.7s;
    }

    .calendar-animation .day:nth-child(9) {
        animation-delay: 0.8s;
    }

    @keyframes dayPulse {

        0%,
        100% {
            transform: scale(1);
            opacity: 0.5;
        }

        50% {
            transform: scale(1.3);
            opacity: 1;
        }
    }

    .editor-overlay .typing {
        white-space: nowrap;
        overflow: hidden;
        font-size: 16px;
        color: #fff;
        font-weight: bold;
    }

}

@media(max-width:1024px) {

    .panel-resizer,
    .resizer,
    .resizer-horizontal {
        display: none;
    }
}

.editor-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #ccc;
    padding: 0 10px 10px 10px;
    position: relative;
}

textarea::selection {
    background: #fff;
    color: #000;
}


.editor-header {
    background: #2d2d2d;
    color: #fff;
    padding: 5px 10px;
    font-weight: bold;
    text-align: center;
}

textarea {
    flex: 1;
    height: 100%;
    resize: none;
    padding: 8px;
    font-family: monospace;
    font-size: 14px;
    overflow: auto;
}

.preview {
    flex: 1;
    display: flex;
    flex-direction: column;
}

#live-preview {
    flex: 1;
    width: 100%;
    border: none;
    height: 100%;
}


.editor-right .resizer,
.editor-right .panel-width-resizer,
.editor-left .panel-width-resizer,
.editor-center .resize-handle,
.editor-left .resize-handle {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media(max-width:1024px) {
    .editor-panel {
        display: none;
    }

    .editor-panel.active {
        display: block;
    }
}



.editor-sidebar {
    display: none;
}

.preview-panel {
    flex: 1;
    overflow: hidden;
}

@media (max-width: 1024px) {
    #live-preview {
        height: 100%;
        padding-bottom: 30px;
    }

    .input__row {
        padding: 15px;
    }

    .editor-container {
        display: flex;
        flex-direction: column;
        padding-left: 28px;
    }


    .editor-sidebar {
        display: flex;
        flex-direction: column;
        background: #222;
        padding: 5px;
        gap: 10px;
        align-items: center;
        position: fixed;
        height: 100vh;
        width: 31px;
        left: 0;
    }

    .editor-sidebar button {
        background: #ccc;
        border: none;
        color: #000;
        font-size: 18px;
        padding: 10px;
        cursor: pointer;
        border-radius: 8px;
    }

    .editor-sidebar button.active {
        background: #444;
        color: #fff;
    }

    .editors {
        flex: 1;
        padding: 10px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-width: unset;
        max-width: unset;
    }

    textarea {
        max-height: unset;
        height: 100%;
    }
}

header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.siteheader {
    background: #111;
    padding: 10px;
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 2000;
}

.siteheader h1 {
    font-size: 1.1rem;
    color: #fff;
    font-weight: bold;
}

.siteheader span {
    font-size: .9rem;
    color: #fff;
    font-weight: bold;
}

.sitheader--logo {
    width: 30px;
    height: 30px;
}

.sitheader--logo img {
    width: 100%;
    height: 100%;
}

.panel-resizer {
    background: #ddd;
    cursor: row-resize;
    transition: background 0.2s ease;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%
}

.panel-resizer:hover {
    background: #bbb;
}

.editors--switch {
    float: right;
    margin-left: auto;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

@media(max-width:1024px) {
    .editors--switch {
        display: none;
    }
}

.editors--switch h2 {
    font-size: 16px;
    color: #fff;
}


.editors--switch button {
    width: 40px;
    background: #fff;
    padding: 7px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 0;
}



.editors--switch button.dropdown-btn {
    border: 1px solid #ccc;
    border-right: 0;
    border-radius: 0px;
    background: none;
}

.editors--switch button.dropdown-btn.active {
    background: #ccc;
}

.editors--switch button.dropdown-btn:first-of-type svg {
    transform: rotate(-90deg);
}

.editors--switch button.dropdown-btn:last-of-type {
    border-right: 1px solid #ccc;
}

.editors--switch button.dropdown-btn:last-of-type svg {
    transform: rotate(90deg);
}

@keyframes dropdownFlipIn {
    0% {
        opacity: 0;
        transform: rotateX(-90deg) scaleY(0.8);
    }

    100% {
        opacity: 1;
        transform: rotateX(0) scaleY(1);
    }
}

@keyframes dropdownFlipOut {
    0% {
        opacity: 1;
        transform: rotateX(0) scaleY(1);
    }

    100% {
        opacity: 0;
        transform: rotateX(-90deg) scaleY(0.8);
    }
}

.view-switcher-dropdown.dropdown-show {
    animation: dropdownFlipIn 0.3s ease forwards;
}

.view-switcher-dropdown.dropdown-hide {
    animation: dropdownFlipOut 0.3s ease forwards;
}

.view-switcher-dropdown {
    display: flex;
    justify-content: space-between;
    overflow: hidden;
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

#page-loader img {
    width: 150px;
    height: 150px;
    animation: loaderPulse 1.2s infinite;
    border-radius: 50%;
    display: block;
    position: relative;
    z-index: 2;
}

.progress-ring {
    position: absolute;
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
    z-index: 1;
}

.progress-ring__circle {
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    transition: stroke-dashoffset 0.2s linear;
}


@keyframes loaderPulse {

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

    50% {
        transform: scale(1.1);
    }
}

#page-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

form#search__popupmain {
    display: flex;
    align-items: center;
    gap: 5px;
}

form#search__popupmain label {
    font-size: 12px;
    font-family: sans-serif;
}

.datatable-loader {
    position: relative;
    width: 150px;
    height: 150px;
    font-family: "Poppins", sans-serif;
}

.loader-scene {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.95);
    animation: loader-sceneSwap 6s infinite;
}

.search-loader-scene {
    animation-delay: 0s;
}

.loader-search-icon {
    font-size: 25px;
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 10px;
}

.loader-scene .hand {
    position: absolute;
    font-size: 30px;
    top: 48%;
    left: 50%;
    transform-origin: top left;
    animation: clickHand 3s infinite;
    color: #999;
    filter: grayscale(70%);
}

.loader-scene .loader-dropdown {
    position: absolute;
    width: 100px;
    height: 0;
    background: #fff;
    border: 2px solid #ccc;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 5px;
    opacity: 0;
    overflow: hidden;
    animation: dropdownOpen 3s infinite;
    display: flex;
    justify-content: center;
    align-items: center;

}

.loader-scene .loader-dropdown .loader-loading-text {
    display: block;
    font-size: 10px;
    text-align: center;
    padding: 5px;
    color: #000;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(20, end) infinite;
}

.refresh-loader-scene {
    animation-delay: 3s;
}

.refresh-icon {
    font-size: 25px;
    position: absolute;
    top: 40%;
    left: 45%;
    transform: translate(-50%, -50%);
    border: 1px solid #fff;
    border-radius: 10px;
    padding: 10px;
}

.hand-refresh {
    font-size: 30px;
    top: 48%;
    left: 50%;
    transform-origin: top left;
    animation: clickHandRefresh 3s infinite;
    color: #999;
    filter: grayscale(70%);
}

.loader-table {
    position: absolute;
    width: 100px;
    height: 60px;
    background: #fff;
    border: 2px solid #ccc;
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: inset 0 0 0 2px #fff;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-table .loader-loading-text {
    font-size: 10px;
    text-align: center;
    margin: 5px 0;
    color: #000;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    animation: typing 2s steps(20, end) infinite;
    min-height: 10px;
}

@keyframes typing {
    0% {
        width: 0;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0;
    }
}

.table-body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 4px;
    position: relative;
    animation: tableChange 3s infinite;
    margin-top: 8px;
}

.table-row {
    width: 80%;
    height: 6px;
    background: #d0d0d0;
    border-radius: 4px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

@keyframes loader-sceneSwap {

    0%,
    45% {
        opacity: 1;
        transform: scale(1);
    }

    50%,
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes clickHand {

    0%,
    70%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    30% {
        transform: translate(-50%, -50%) rotate(10deg) scale(0.95);
    }
}

@keyframes clickHandRefresh {

    0%,
    70%,
    100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    30% {
        transform: translate(-50%, -50%) rotate(8deg) scale(0.95);
    }
}

@keyframes dropdownOpen {

    0%,
    60%,
    100% {
        height: 0;
        opacity: 0;
    }

    30% {
        height: 60px;
        opacity: 1;
    }
}

@keyframes rotateIcon {
    0% {
        transform: translateX(-50%) rotate(0deg);
    }

    100% {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes textSlide {
    0% {
        transform: translateX(-20%);
        opacity: 0.6;
    }

    50% {
        transform: translateX(0%);
        opacity: 1;
    }

    100% {
        transform: translateX(20%);
        opacity: 0.6;
    }
}

@keyframes fadeText {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

@keyframes tableChange {
    0% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-30%);
        opacity: 0.8;
    }

    50% {
        transform: translateY(-11%);
        opacity: 0.5;
    }

    75% {
        transform: translateY(-37%);
        opacity: 0.8;
    }

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


.skeleton-page-loader {
    display: flex;
    gap: 15px;
    background: transparent;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #fff;
    flex-direction: column;
    width: 200px;
    overflow: hidden;
    box-sizing: border-box;
}

.skeleton-left {
    position: relative;
    flex-direction: row;
    gap: 12px;
    width: 100%;
    padding: 10px;
    border-radius: 16px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    display: flex;
    background: transparent;
    border: 1px solid #fff;
}

.skeleton-tab {
    height: 20px;
    border-radius: 8px;
    background: #e5e7eb;
    position: relative;
    overflow: hidden;
    flex: 1;
}

.skeleton-tab::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-page-loader .hand {
    position: absolute;
    left: 31px;
    width: 28px;
    height: 28px;
    color: #999;
    filter: grayscale(70%);
    top: 50%;
    transform: translateY(-50%);
    animation: moveHand 6s infinite ease-in-out alternate;
}

@keyframes moveHand {
    0% {
        left: 0px;
    }

    25% {
        left: 90px;
    }

    50% {
        left: 140px;
    }

    75% {
        left: 140px;
    }

    100% {
        left: 140px;
    }
}

.skeleton-tab:nth-child(1) {
    animation: activeTabCycle 6s infinite;
    animation-delay: 0s;
}

.skeleton-tab:nth-child(2) {
    animation: activeTabCycle 6s infinite;
    animation-delay: 1.5s;
}

.skeleton-tab:nth-child(3) {
    animation: activeTabCycle 6s infinite;
    animation-delay: 3s;
}

.skeleton-tab:nth-child(4) {
    animation: activeTabCycle 6s infinite;
    animation-delay: 4.5s;
}

@keyframes activeTabCycle {

    0%,
    100% {
        background: #e5e7eb;
    }

    30% {
        background: #cbd5e1;
    }
}

@keyframes shimmer {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}

.skeleton-right {
    width: 100%;
}

.skeleton-header {
    height: 24px;
    width: 60%;
    border-radius: 6px;
    background: #e5e7eb;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.skeleton-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    height: 100%;
    width: 150px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

.skeleton-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}



.skeleton-row {
    height: 16px;
    background: #e5e7eb;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
    animation: rearrangeRows 3s infinite ease-in-out;
}

.skeleton-row:nth-child(1) {
    animation-delay: 0s;
}

.skeleton-row:nth-child(2) {
    animation-delay: 0.3s;
}

.skeleton-row:nth-child(3) {
    animation-delay: 0.6s;
}

.skeleton-row:nth-child(4) {
    animation-delay: 0.9s;
}

.skeleton-row:nth-child(5) {
    animation-delay: 1.2s;
}

.skeleton-row::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150px;
    width: 150px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -150px;
    }

    100% {
        left: 100%;
    }
}

@keyframes rearrangeRows {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(-5px);
        opacity: 0.85;
    }
}

.offline-message {
    position: fixed;
    inset: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000d6;
    color: white;
    text-align: center;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    cursor: progress;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeDown 0.4s forwards ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeUp {
    animation: fadeUp 0.4s forwards ease;
}

@keyframes fadeUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(-20px);
    }
}