/* ========================================
   JWT 解码工具样式
   ======================================== */

.main-content { width: 100%; max-width: 1200px; height: calc(100vh - 120px); display: flex; align-items: center; padding: 0 20px; padding-bottom: 50px; z-index: 10; }
.container { width: 100%; height: 100%; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; width: 100%; height: 100%; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); }

/* 工具栏 */
.toolbar { padding: 12px 16px; border-bottom: 1px solid var(--border-color); background: rgba(0,0,0,0.2); flex-shrink: 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.actions-left, .actions-right { display: flex; gap: 8px; align-items: center; }
.toggle-option { display: flex; align-items: center; gap: 6px; cursor: pointer; color: var(--text-secondary); font-size: 13px; user-select: none; }
.toggle-option input { accent-color: var(--primary-color); }
.btn-action { padding: 6px 12px; border-radius: var(--radius-md); border: 1px solid var(--border-color); background: rgba(255,255,255,0.05); color: var(--text-secondary); cursor: pointer; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: 0.2s; }
.btn-action:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.btn-action.btn-blue { background: rgba(59,130,246,0.2); border-color: rgba(59,130,246,0.4); color: #60a5fa; }
.btn-action.btn-blue:hover { background: rgba(59,130,246,0.3); }
.btn-action.btn-gray { background: rgba(255,255,255,0.05); }

/* 输入区 */
.input-section { border-bottom: 1px solid var(--border-color); flex-shrink: 0; }
.jwt-input { width: 100%; min-height: 80px; max-height: 150px; padding: 14px 16px; background: transparent; border: none; outline: none; font-family: var(--font-mono); font-size: 13px; color: var(--text-primary); resize: vertical; word-break: break-all; }
.jwt-input::placeholder { color: var(--text-muted); }

/* 结果区 */
.results-section { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; }
.jwt-part { border-bottom: 1px solid var(--border-color); }
.part-header { display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; font-size: 11px; font-weight: 700; letter-spacing: 1px; }
.part-header-red { background: rgba(239,68,68,0.1); color: #f87171; }
.part-header-purple { background: rgba(168,85,247,0.1); color: #c084fc; }
.part-header-blue { background: rgba(59,130,246,0.1); color: #60a5fa; }
.part-label { font-family: var(--font-mono); }
.btn-copy-part { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 13px; padding: 2px 6px; border-radius: 4px; transition: 0.2s; }
.btn-copy-part:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }
.part-content { padding: 10px 16px; margin: 0; font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--text-secondary); white-space: pre-wrap; word-break: break-all; overflow-wrap: break-word; }

/* 错误提示 */
.error-display { padding: 10px 16px; background: rgba(239,68,68,0.1); border-top: 1px solid rgba(239,68,68,0.2); color: #f87171; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.error-display.hidden { display: none; }

@media (max-width: 768px) {
    .toolbar { flex-direction: column; }
    .jwt-input { min-height: 60px; }
}
