@charset "UTF-8";
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.6;
    padding: 1rem;
    max-width: 960px;
    margin: 0 auto;
}
header {
    background: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    margin-bottom: 1.5rem;
    border: 1px solid #e2e8f0;
}
nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.2rem;
    align-items: center;
}
nav a {
    color: #0284c7;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}
nav a:hover {
    color: #0369a1;
    border-bottom-color: #0284c7;
}
nav a.active {
    color: #0f172a;
    border-bottom-color: #0284c7;
}
main {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
h1 {
    font-size: 1.5rem;
    border-left: 4px solid #0284c7;
    padding-left: 10px;
    margin-bottom: 0.5rem;
    color: #0f172a;
}
p.description {
    font-size: 0.88rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}
.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
    .tool-grid { grid-template-columns: 1fr; }
}
.tool-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.tool-box label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}
textarea {
    width: 100%;
    min-height: 220px;
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: Consolas, Monaco, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    background: #ffffff;
    color: #0f172a;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}
textarea[readonly] {
    background: #f8fafc;
    color: #334155;
}
.meta-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #64748b;
}
.actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}
button {
    background: #0284c7;
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.2rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
button:hover { background: #0369a1; }
button:active { transform: scale(0.98); }
button.secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}
button.secondary:hover { background: #e2e8f0; color: #0f172a; }
button.success {
    background: #10b981;
    color: #ffffff;
}
button.success:hover { background: #059669; }
footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}