/* MY CSS */

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


/* BODY */

body {
    min-height: 100vh;

    font-family: Arial, sans-serif;

    background: #090a0d;
    color: #ffffff;

    padding: 40px 50px;
}


/* MAIN APP */

.app {
    width: 100%;
    max-width: 1250px;

    margin: 0 auto;
}


/*  HEADER */

.app-header {
    margin-bottom: 30px;
}

.app-header h1 {
    font-size: 36px;
    font-weight: 700;

    margin-bottom: 10px;

    letter-spacing: -0.5px;
}

.app-header p {
    color: #8d929c;

    font-size: 15px;
    line-height: 1.5;
}


/* WORKSPACE */

.workspace {
    display: flex;

    width: 100%;

    border: 1px solid #272a31;
    border-radius: 14px;

    overflow: hidden;

    background: #111318;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.35);
}


/* LEFT — EDITOR PANEL */

.editor-panel {
    width: 65%;

    padding: 28px;

    background: #111318;

    border-right: 1px solid #272a31;
}


/* RIGHT — TESTER PANEL */

.tester-panel {
    width: 35%;

    padding: 28px;

    background: #0e1014;
}


/* PANEL HEADINGS */

.editor-panel h2,
.tester-panel h2 {
    font-size: 19px;

    margin-bottom: 20px;

    letter-spacing: 0.3px;
}

.tester-panel h2 {
    margin-bottom: 8px;
}


/* TESTER DESCRIPTION */

.tester-description {
    color: #777d87;

    font-size: 13px;

    line-height: 1.5;

    margin-bottom: 25px;
}


/* EDITOR */

.editor-wrapper {
    position: relative;

    width: 100%;
    height: 520px;

    overflow: hidden;

    background: #08090c;

    border: 1px solid #292d35;

    border-radius: 9px;
}


/* HIGHLIGHT + TEXTAREA */

#highlight-content,
#editor {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    padding: 22px;

    font-family: "Courier New", monospace;
    font-size: 15px;

    line-height: 1.8;

    white-space: pre-wrap;

    overflow: auto;
}


/* HIGHLIGHT LAYER */

#highlight-content {
    color: #e6e8eb;

    pointer-events: none;
}


/* TEXTAREA */

#editor {
    background: transparent;

    color: transparent;

    caret-color: #ffffff;

    resize: none;

    border: none;
    outline: none;
}


/* PLACEHOLDER */

#editor::placeholder {
    color: #59606b;

    opacity: 1;
}


/* EDITOR SCROLLBAR */

#editor::-webkit-scrollbar,
#highlight-content::-webkit-scrollbar {
    width: 8px;
}

#editor::-webkit-scrollbar-track,
#highlight-content::-webkit-scrollbar-track {
    background: transparent;
}

#editor::-webkit-scrollbar-thumb,
#highlight-content::-webkit-scrollbar-thumb {
    background: #30343c;

    border-radius: 10px;
}

#editor::-webkit-scrollbar-thumb:hover,
#highlight-content::-webkit-scrollbar-thumb:hover {
    background: #444a54;
}


/* SYNTAX HIGHLIGHTING */

.comment {
    color: #666d78;
}

.directive {
    color: #65a9ff;

    font-weight: bold;
}

.disallow {
    color: #ff6b6b;

    font-weight: bold;
}

.allow {
    color: #61d995;

    font-weight: bold;
}

.value {
    color: #e4e7eb;
}


/* LABELS */

label {
    display: block;

    margin-top: 22px;
    margin-bottom: 8px;

    color: #aeb4be;

    font-size: 13px;
    font-weight: 600;
}


/* INPUT + SELECT */

input,
select {
    width: 100%;

    height: 46px;

    padding: 0 14px;

    background: #08090c;

    color: #ffffff;

    border: 1px solid #30343c;

    border-radius: 7px;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


/* Focus effect */

input:focus,
select:focus {
    border-color: #4da6ff;

    box-shadow:
        0 0 0 3px rgba(77, 166, 255, 0.10);
}


/* Select arrow area */

select {
    cursor: pointer;
}


/* TEST BUTTON */

button {
    width: 100%;

    height: 46px;

    margin-top: 25px;

    background: #4da6ff;

    color: #ffffff;

    border: none;

    border-radius: 7px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}


/* Hover */

button:hover {
    background: #358fe8;

    box-shadow:
        0 8px 20px rgba(77, 166, 255, 0.15);
}


/* Click */

button:active {
    transform: scale(0.98);
}


/* RESULT BOX */

#result-box {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 120px;

    margin-top: 25px;

    padding: 25px;

    background: #191c22;

    color: #dfe3e8;

    border: 1px solid #2b3038;

    border-radius: 9px;

    text-align: center;

    font-size: 25px;
    font-weight: 700;

    letter-spacing: 0.5px;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
}


/* RESPONSIVE DESIGN */

@media (max-width: 900px) {

    body {
        padding: 25px;
    }

    .workspace {
        flex-direction: column;
    }

    .editor-panel,
    .tester-panel {
        width: 100%;
    }

    .editor-panel {
        border-right: none;

        border-bottom: 1px solid #272a31;
    }

    .editor-wrapper {
        height: 450px;
    }
}


/* MOBILE */

@media (max-width: 600px) {

    body {
        padding: 15px;
    }

    .app-header h1 {
        font-size: 28px;
    }

    .app-header p {
        font-size: 14px;
    }

    .editor-panel,
    .tester-panel {
        padding: 20px;
    }

    .editor-wrapper {
        height: 400px;
    }

    #highlight-content,
    #editor {
        padding: 18px;

        font-size: 14px;
    }
}