html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #252525;
    background: #ffffff;
}

a {
    color: inherit;
}

.navbar {
    min-height: 56px;
    background: #ffffff;
}

    /* Remove the focus ring from the dropdown toggle. */
    .navbar .dropdown-toggle {
        box-shadow: none;
        border: none;
    }

        /* Show the focus ring only when the dropdown toggle receives keyboard focus. */
        .navbar .dropdown-toggle.keyboard-focus {
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
        }

    .navbar .dropdown-header {
        padding: 0.45rem 1rem;
        font-weight: 600;
        border-bottom: 1px solid #e5e5e5;
    }

        .navbar .dropdown-header.text-category {
            background-color: #e8f3f5;
            color: #307d91;
        }

        .navbar .dropdown-header.datetime-category {
            background-color: #f5f0df;
            color: #806f32;
        }

.navbar-brand {
    font-size: 1rem;
    font-weight: 500;
    color: #222222;
}

.nav-link {
    font-size: 0.95rem;
}

.site-main {
    min-height: calc(100vh - 56px - 58px);
}

.site-footer {
    min-height: 58px;
    background: #ffffff;
}

.footer-content {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #777777;
}

.home-intro {
    padding: 72px 0 56px;
    max-width: 720px;
}

    .home-intro h1 {
        margin: 0 0 12px;
        font-size: 2rem;
        font-weight: 500;
        letter-spacing: -0.02em;
    }

.home-tagline {
    margin: 0 0 8px;
    font-size: 1.05rem;
    color: #555555;
}

.home-description {
    margin: 0;
    font-size: 0.95rem;
    color: #777777;
}

.utilities-section {
    padding-bottom: 72px;
}

    .utilities-section h2 {
        margin: 0 0 24px;
        font-size: 1.35rem;
        font-weight: 500;
    }

.utilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.utility-item {
    padding: 22px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    background: #ffffff;
}

    .utility-item h3 {
        margin: 0 0 8px;
        font-size: 1rem;
        font-weight: 500;
    }

    .utility-item p {
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.6;
        color: #666666;
    }

@media (max-width: 767.98px) {
    .home-intro {
        padding: 48px 0 40px;
    }

    .utilities-grid {
        grid-template-columns: 1fr;
    }
}

.utility-page {
    padding: 56px 0 72px;
}

.utility-header {
    max-width: 720px;
    margin-bottom: 32px;
}

    .utility-header h1 {
        margin: 0 0 10px;
        font-size: 1.8rem;
        font-weight: 500;
        letter-spacing: -0.02em;
    }

    .utility-header p {
        margin: 0;
        font-size: 0.95rem;
        color: #666666;
    }

.json-tool {
    max-width: 100%;
}

.json-editor {
    margin-bottom: 16px;
}

    .json-editor .form-label {
        margin-bottom: 8px;
        font-size: 0.9rem;
        font-weight: 500;
    }

.json-textarea {
    min-height: 120px;
    padding: 16px;
    resize: none;
    overflow-y: hidden;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border-color: #dddddd;
}

    .json-textarea:focus {
        border-color: #999999;
        box-shadow: none;
    }

.json-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .json-actions .btn {
        min-width: 82px;
    }

.json-status {
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.85rem;
}

    .json-status.success {
        color: #287a45;
    }

    .json-status.error {
        color: #b42318;
    }

.utility-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

    .utility-link:hover {
        border-color: #cccccc;
        text-decoration: none;
    }

    .utility-link h3 {
        color: #222222;
    }

    .utility-link p {
        color: #666666;
    }

.utility-textarea {
    min-height: 120px;
    height: 120px;
    padding: 16px;
    resize: none;
    overflow-y: hidden;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    border-color: #dddddd;
}

    .utility-textarea:focus {
        border-color: #999999;
        box-shadow: none;
    }

.utility-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

    .utility-actions .btn {
        min-width: 82px;
    }

.utility-status {
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.85rem;
}

    .utility-status.success {
        color: #287a45;
    }

    .utility-status.error {
        color: #b42318;
    }

.utility-more-button {
    display: block;
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 0.85rem;
    color: #555555;
    text-decoration: underline;
    cursor: pointer;
}

    .utility-more-button:hover {
        color: #222222;
    }