﻿body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 50px;
    padding: 0 0 40px 0;
}

h1 {
    color: #2c3e50;
    margin-top: 32px;
    margin-bottom: 16px;
    font-size: 2.2rem;
    letter-spacing: 1px;
}

p {
    color: #444;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.input-group {
    display: flex;
    max-width: 600px;
    margin-bottom: 1.5rem;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 4px 0 0 4px;
    padding: 0.5rem;
    font-size: 1rem;
    background-color: #e9ecef;
    color: #333;
    flex: 1 1 auto;
    transition: border-color 0.2s;
}

    .form-control:focus {
        border-color: #007bff;
        outline: none;
    }

.btn {
    border: 1px solid #007bff;
    background-color: #007bff;
    color: #fff;
    border-radius: 0 4px 4px 0;
    padding: 0.5rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

    .btn:active, .btn:focus {
        background-color: #0056b3;
        color: #fff;
    }

    .btn.btn-outline-secondary {
        background: #fff;
        color: #007bff;
        border: 1px solid #007bff;
    }

        .btn.btn-outline-secondary:active, .btn.btn-outline-secondary:focus {
            background: #007bff;
            color: #fff;
        }

table.table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

    table.table th, table.table td {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #e3e3e3;
        text-align: left;
    }

    table.table th {
        background: #f1f3f6;
        color: #333;
        font-weight: 600;
    }

    table.table tr:hover {
        background: #f6faff;
    }

code {
    background: #f1f3f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.98em;
    color: #2c3e50;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s;
}

    a:hover {
        color: #0056b3;
        text-decoration: underline;
    }

pre, code {
    font-family: 'Fira Mono', 'Consolas', 'Menlo', 'Monaco', 'Liberation Mono', monospace;
}

pre {
    background: #23272e;
    color: #f8f8f2;
    border-radius: 6px;
    padding: 1em 1.2em;
    margin: 1em 0;
    overflow-x: auto;
    font-size: 1em;
    line-height: 1.5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

code {
    background: #f1f3f6;
    color: #2c3e50;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.98em;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.code-block {
    position: relative;
    margin-bottom: 1.5em;
}

.copy-code-btn {
    position: absolute;
    top: 10px;
    right: 18px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 4px 12px;
    font-size: 0.95em;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s;
    z-index: 2;
}

    .copy-code-btn:hover, .copy-code-btn:focus {
        opacity: 1;
        background: #0056b3;
    }

.code-block pre {
    margin-top: 0.5em;
}

details {
    background: #f1f3f6;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(44,62,80,0.06);
    margin: 1.5em 0;
    padding: 0.5em 1.2em 1em 1.2em;
    transition: box-shadow 0.2s;
}

    details[open] {
        box-shadow: 0 2px 8px rgba(44,62,80,0.10);
        background: #e9ecef;
    }

summary {
    font-weight: 600;
    font-size: 1.1em;
    color: #2c3e50;
    cursor: pointer;
    outline: none;
    padding: 0.5em 1em;
    margin: -0.5em -1.2em 0 -1.2em;
    border-radius: 8px 8px 0 0;
    background: none;
    transition: background 0.2s;
}

    summary:hover, summary:focus {
        background: #dde3ea;
    }

details > *:not(summary) {
    margin-top: 0.8em;
}
