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

body {
    font-family: system-ui, sans-serif;
    background: #f4f7f9;
    color: #1f2937;
    display: flex;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #0f172a;
    color: #fff;
    padding: 24px;
    position: fixed;
    top: 0;
    bottom: 0;
}

.sidebar h2 {
    margin-bottom: 20px;
}

.sidebar a {
    display: block;
    padding: 10px 14px;
    color: #cbd5f5;
    text-decoration: none;
    border-radius: 10px;
}

.sidebar a.active,
.sidebar a:hover {
    background: #1e293b;
    color: #fff;
}

/* Main */
.main-content {
    margin-left: 240px;
    padding: 40px;
    width: 100%;
}

header {
    max-width: 900px;
    margin: 0 auto 30px;
}

header h1 {
    font-size: 2.2rem;
}

header p {
    color: #4b5563;
}

/* Tool Card */
.tool-card {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #fff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

textarea {
    width: 100%;
    min-height: 140px;
    padding: 14px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    margin-bottom: 14px;
}

button {
    background: #2563eb;
    color: #fff;
    border: none;
    padding: 12px 18px;
    border-radius: 12px;
    cursor: pointer;
}

/* Output */
.output-wrapper {
    position: relative;
    margin-top: 18px;
}

.output {
    background: #f1f5f9;
    padding: 14px;
    border-radius: 12px;
    font-family: monospace;
    word-break: break-all;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #e5e7eb;
    color: #111;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
}

/* SEO */
.tool-content {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.tool-content h2 {
    margin: 30px 0 14px;
}

.tool-content p,
.tool-content li {
    line-height: 1.7;
    margin-bottom: 10px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #111827;
    color: #fff;
    padding: 14px 20px;
    border-radius: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: 0.3s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== JWT TOOL ===== */

.jwt-tool textarea {
    min-height: 120px;
    font-family: monospace;
}

/* Status badge */
.jwt-status {
    margin-top: 12px;
    font-weight: 600;
}

.jwt-status.valid {
    color: #16a34a;
}

.jwt-status.expired {
    color: #dc2626;
}

.jwt-status.invalid {
    color: #ca8a04;
}

/* Output layout */
.jwt-output {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.jwt-section {
    background: #f8fafc;
    border-radius: 14px;
    padding: 16px;
}

.jwt-section h3 {
    margin-bottom: 10px;
    font-size: 1rem;
}

.jwt-section pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: 14px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* Mobile */
@media (max-width: 900px) {
    .jwt-output {
        grid-template-columns: 1fr;
    }
}

