.tool-container {
    max-width: 1200px;
    margin: 3rem auto;
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.jwt-layout {
    display: flex;
    gap: 2rem;
    min-height: 600px;
}

.col-encoded, .col-decoded {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.section-header h3 {
    margin: 0;
    color: #374151;
    font-size: 1.2rem;
}

.btn-sm {
    background: #fff;
    border: 1px solid #d1d5db;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4b5563;
}

.btn-sm:hover {
    background: #f3f4f6;
    color: #2563eb;
    border-color: #2563eb;
}

#encodedToken {
    flex: 1;
    width: 100%;
    padding: 1rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: none;
    color: #374151;
}

#encodedToken:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.decoded-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.block-label {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6b7280;
    border-bottom: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.code-editor {
    width: 100%;
    min-height: 150px;
    padding: 1rem;
    border: none;
    font-family: 'Menlo', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    background: transparent;
}

.code-editor:focus {
    outline: none;
    background: #fff;
}

/* Colors matching standard JWT representation */
#headerInput { color: #fb015b; }
#payloadInput { color: #d63aff; }
.signature-section { color: #00b9f1; padding: 1rem; font-family: monospace; font-size: 13px; }

.signature-section input {
    width: 100%;
    padding: 0.5rem;
    margin: 0.5rem 0;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: inherit;
    color: #374151;
}

.validation-status {
    padding: 1rem;
    border-radius: 8px;
    background: #f3f4f6;
    color: #4b5563;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.validation-status.valid {
    background: #dcfce7;
    color: #166534;
}

.validation-status.invalid {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 768px) {
    .jwt-layout {
        flex-direction: column;
    }
    #encodedToken {
        min-height: 200px;
    }
}