/* assets/toolbox.css */

:root {
    --bg: #f4f2ee;
    --card: #ffffff;
    --text: #181818;
    --muted: #6f6f6f;
    --border: #ddd8cf;
    --accent: #111111;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 40px;
}

.topbar h1 {
    margin: 0;
    font-size: 32px;
}

.topbar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.logout {
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    background: var(--card);
    padding: 10px 14px;
    border-radius: 999px;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
    padding: 0 40px 40px;
}

.tool-card {
    display: block;
    padding: 24px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border: 1px solid var(--border);
    border-radius: 18px;
    transition: transform .12s ease, box-shadow .12s ease;
}

.tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

.tool-card .material-symbols-outlined {
    font-size: 34px;
    margin-bottom: 16px;
}

.tool-card strong {
    display: block;
    font-size: 18px;
}

.tool-card small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-box {
    width: 320px;
    padding: 28px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.login-box h1 {
    margin-top: 0;
}

input,
textarea,
select,
button {
    font: inherit;
}

input,
textarea,
select {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    color: var(--text);
}

textarea {
    min-height: 120px;
}

select {
    cursor: pointer;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

button {
    margin-top: 12px;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 10px;
    background: var(--accent);
    color: white;
    cursor: pointer;
}

code,
pre,
.mono {
    font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.error {
    color: #a40000;
}

.site-header {
    height: 68px;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: white;
    border-bottom: 1px solid var(--border);
}

.site-title a {
    display: flex;
    align-items: center;
    gap: 10px;

    text-decoration: none;
    color: var(--text);

    font-weight: 600;
    font-size: 22px;
}

.site-nav {
    display: flex;
    gap: 12px;
}

.site-nav a {
    display: flex;
    align-items: center;
    gap: 6px;

    text-decoration: none;
    color: var(--text);

    padding: 8px 14px;

    border-radius: 10px;
}

.site-nav a:hover {
    background: rgba(0,0,0,.05);
}

.page {
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 30px;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 600;
}

.page-content {
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 30px;
}

.site-footer {
    text-align: center;
    color: var(--muted);
    font-size: 14px;

    padding: 40px;
}
.tool-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.tool-textarea {
    width: 100%;
    min-height: 240px;
    resize: vertical;
}

.button-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.button-row button {
    width: auto;
    margin: 0;
}

.secondary-button {
    background: #eeeeee;
    color: var(--text);
}

.stats {
    margin-top: 28px;
    padding: 14px 16px;
    background: #f5f5f5;
    border: 1px solid var(--border);
    border-radius: 12px;
}

.tool-table {
    width: auto;
    min-width: 260px;
    border-collapse: collapse;
    margin-top: 18px;
}

.tool-table th,
.tool-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    text-align: left;
}

.tool-table th:last-child,
.tool-table td:last-child {
    text-align: left;
    padding-left: 32px;
}

.tool-category {
    margin: 34px 0 14px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.tool-category:first-of-type {
    margin-top: 0;
}

.tool-number {
    width: 120px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.radio-group {
    margin: 18px 0;
    padding: 0;
    border: 0;
}

.radio-group legend {
    font-weight: 600;
    margin-bottom: 10px;
}

.radio-group label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 22px;
    cursor: pointer;
}

.output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-top: 28px;
    margin-bottom: 10px;
}

.copy-button {

    display: flex;
    align-items: center;
    gap: 6px;

    width: auto;

    margin: 0;

    background: #eeeeee;
    color: var(--text);
}

.copy-button .material-symbols-outlined {
    font-size: 18px;
}

.form-grid {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.form-grid > div {
    min-width: 220px;
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: 16px;
    padding: 34px;
    text-align: center;
    background: #fafafa;
    margin-bottom: 18px;
}

.dropzone input {
    margin-top: 14px;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.result-box {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px;
    background: #fafafa;
}

.result-box strong {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

.result-box span {
    display: block;
    margin-top: 4px;
    font-size: 18px;
}

.dropzone {
    display: block;
    cursor: pointer;
}

.dropzone:hover {
    border-color: var(--accent);
    background: #f6fbff;
}

.dropzone-active {
    border-color: var(--accent);
    background: #eef8ff;
}

.tool-color {
    width: 72px;
    height: 42px;
    padding: 4px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: white;
    cursor: pointer;
}