/* Inherits professional styles */

.jwt-tool-container {
    max-width: 100%;
}

.jwt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

@media(min-width: 900px) {
    .jwt-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.code-editor {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    padding: 15px;
    border: 1px solid #dfe6ed;
    border-radius: 8px;
    width: 100%;
    min-height: 400px;
    resize: vertical;
    color: #475569;
}

.code-editor:focus {
    border-color: var(--ast-global-color-0, #0274be);
    outline: none;
}

.section-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    color: #334155;
}

.decoded-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
    overflow: hidden;
}

.section-header {
    background: #f8fafc;
    padding: 10px 15px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 700;
    font-size: 13px;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header .light {
    font-weight: 400;
    opacity: 0.8;
}

.color-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.color-dot.error {
    background: #fb015b;
}

.color-dot.warn {
    background: #d63aff;
}

.color-dot.info {
    background: #00b9f1;
}

.header-section {
    border-color: #fb015b33;
}

.payload-section {
    border-color: #d63aff33;
}

.signature-section {
    border-color: #00b9f133;
}

.header-section .section-header {
    color: #fb015b;
    background: #fff0f5;
}

.payload-section .section-header {
    color: #d63aff;
    background: #f9f0ff;
}

.signature-section .section-header {
    color: #00b9f1;
    background: #f0faff;
}


.json-viewer,
.text-viewer {
    padding: 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    white-space: pre-wrap;
    word-break: break-all;
    line-height: 1.5;
}

#output-header {
    color: #fb015b;
}

#output-payload {
    color: #d63aff;
}

#output-signature {
    color: #00b9f1;
}

.status-msg {
    margin-top: 10px;
    padding: 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
}

.status-msg.error {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.status-msg.hidden {
    display: none;
}