body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 20px;
    background: linear-gradient(to right top, #65799b, #5e7294, #586b8e, #526587, #4c5e81);
    color: #333;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-weight: 600;
}

h2 {
    color: #34495e;
    font-weight: 500;
    margin-bottom: 0;
}

h2[contenteditable="true"] {
    cursor: text;
    padding: 2px 8px;
    border-radius: 5px;
    outline: none;
    transition: background-color 0.3s, box-shadow 0.3s;
    min-width: 70px;
    text-align: center;
}

h2[contenteditable="true"]:focus {
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.4);
}

.input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.prettify-btn {
    padding: 4px 12px;
    font-size: 12px;
    background-image: linear-gradient(45deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
}

.prettify-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.input-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 30px;
}

.json-input {
    width: 50%;
    display: flex;
    flex-direction: column;
}

.editor-wrapper {
    position: relative;
    display: flex;
    flex-grow: 1;
    align-items: stretch;
}

textarea {
    width: 100%;
    height: 350px;
    padding: 15px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    resize: vertical;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    background-color: #fdfdfd;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    flex-grow: 1;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
    line-height: 1.5;
    position: relative;
    z-index: 3;
}

textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    gap: 15px;
}

label {
    margin-right: 0;
    font-weight: 500;
    color: #2c3e50;
}

.select-wrapper {
    position: relative;
    width: 250px;
}

.select-wrapper::after {
    content: '▼';
    font-size: 1rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #3498db;
}

select {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
}

select:disabled {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

button {
    padding: 12px 25px;
    background-image: linear-gradient(45deg, #3498db 0%, #2980b9 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(52, 152, 219, 0.3);
}

#results-container {
    border: 1px solid #dfe6e9;
    padding: 20px 30px;
    border-radius: 8px;
    background-color: #ffffff;
    min-height: 100px;
}

.results-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 100px;
    color: #6c757d;
    font-size: 1.1rem;
}

.results-placeholder.error {
    color: #e74c3c;
}

.result-section {
    margin-bottom: 25px;
}

.result-section:last-child {
    margin-bottom: 0;
}

.result-section h3 {
    margin-top: 20px;
    margin-bottom: 15px;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    font-weight: 500;
}

.result-section pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    border: 1px solid #eef2f7;
    color: #212529;
}

.line-numbers-pre {
    position: relative;
    counter-reset: line;
    padding-left: 3em !important;
    white-space: pre;
    overflow-x: auto;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eef2f7;
    font-family: 'Fira Code', 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #212529;
}

.line-numbers-pre code {
    display: block;
}

.line-numbers-pre span.line-number {
    display: inline-block;
    width: 2.5em;
    text-align: right;
    margin-right: 1em;
    color: #999;
    user-select: none;
}

/* Remove old .line-numbers styles for input fields */
.line-numbers { display: none !important; }
.line-numbers span { display: none !important; }

/* Multi-key dropdown styles */
.multi-key-dropdown {
    box-shadow: 0 8px 24px rgba(52, 152, 219, 0.13);
    max-height: 220px;
    overflow-y: auto;
    min-width: 200px;
    background: #fff;
    border: 1px solid #dfe6e9;
    border-radius: 10px;
    padding: 6px 0;
    position: absolute;
    z-index: 20;
    margin-top: 6px;
    transition: box-shadow 0.2s;
}
.multi-key-dropdown label {
    display: flex;
    align-items: center;
    padding: 8px 18px 8px 14px;
    cursor: pointer;
    font-size: 15px;
    color: #34495e;
    transition: background 0.18s;
    position: relative;
    user-select: none;
}
.multi-key-dropdown label.selected {
    background: #eaf6fb;
}
/* Remove hover effect for multi-key-dropdown label */
.multi-key-dropdown label:hover {
    background: none !important;
}
.multi-key-dropdown input[type="checkbox"] {
    margin-right: 10px;
    accent-color: #3498db;
}
.multi-key-dropdown label .checkmark {
    display: none;
    margin-left: auto;
    color: #3498db;
    font-size: 1.1em;
}
.multi-key-dropdown label.selected .checkmark {
    display: inline;
}
#multi-key-dropdown-btn {
    background: #fff;
    border: 1px solid #dfe6e9;
    border-radius: 8px;
    padding: 12px 40px 12px 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #34495e;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.07);
    position: relative;
}
#multi-key-dropdown-btn:focus {
    outline: none;
    border-color: #3498db;
}
#multi-key-dropdown-btn::after {
    content: '\25BC';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1em;
    color: #3498db;
    pointer-events: none;
}

.result-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.collapse-btn {
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 0 6px 0 0;
    font-size: 1.2em;
    display: flex;
    align-items: center;
    color: #3498db;
    transition: color 0.2s;
    height: 32px;
    width: 32px;
    justify-content: center;
}
.collapse-btn:focus, .collapse-btn:hover {
    color: #217dbb;
}
.chevron {
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
    transition: transform 0.22s cubic-bezier(.4,2,.6,1), color 0.2s;
}
.collapse-btn .chevron svg {
    display: block;
    stroke: #3498db;
    stroke-width: 2.2;
    width: 18px;
    height: 18px;
}
.collapse-btn.collapsed .chevron {
    transform: rotate(-90deg);
} 