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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1810 100%);
    min-height: 100vh;
    padding: 20px;
}

main {
    max-width: 800px;
    margin: 0 auto;
    background: #1e1e1e;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 40px;
}

h1 {
    color: #ff8c42;
    margin-bottom: 15px;
    text-align: center;
}

.description {
    text-align: center;
    color: #b0b0b0;
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 30px;
    padding: 0 20px;
}

h2 {
    color: #ffa366;
    font-size: 1.3em;
    margin-bottom: 15px;
    border-bottom: 2px solid #ff8c42;
    padding-bottom: 10px;
}

.endpoint-section {
    margin-bottom: 30px;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #c9c9c9;
    font-weight: 500;
}

input {
    padding: 0.5rem;
    border: 1px solid #444;
    border-radius: 6px;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #444;
    border-radius: 4px;
    font-size: 1em;
    transition: border-color 0.3s;
    background: #2a2a2a;
    color: #e0e0e0;
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #ff8c42;
    box-shadow: 0 0 5px rgba(255, 140, 66, 0.5);
}

button {
    grid-column: 1 / -1;
    padding: 0.7rem 1rem;
    border: none;
    background: #ff8c42;
    color: #1a1a1a;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
}

button:hover {
    background: #ff7a28;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #ff8c42;
    color: #1a1a1a;
    width: 100%;
    font-weight: 600;
}

.btn-primary:hover {
    background: #ff7a28;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.4);
}

pre {
    background: #0f0f0f;
    color: #ffa366;
    padding: 1rem;
    border-radius: 6px;
    overflow: auto;
}

.output {
    background: #000000;
    border: 1px solid #ff8c42;
    border-radius: 4px;
    padding: 15px;
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
    color: #f5f5f5;
}

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.result-table thead {
    background: #2a2a2a;
}

.result-table th {
    padding: 10px;
    text-align: left;
    color: #ff8c42;
    font-weight: 600;
    border-bottom: 2px solid #ff8c42;
}

.result-table td {
    padding: 8px 10px;
    border-bottom: 1px solid #333;
}

.result-table tbody tr:hover {
    background: #1a1a1a;
}

.key-cell {
    color: #ffa366;
    font-weight: 500;
    width: 40%;
}

/* Narrow first column for scan output */
.result-table.narrow-first .key-cell {
    width: 1%;
    white-space: nowrap;
}

.value-cell {
    color: #e0e0e0;
    word-break: break-word;
}

.footer {
    text-align: center;
    padding: 20px;
    margin-top: 30px;
    color: #999;
    font-size: 0.9em;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #ff8c42;
    text-decoration: none;
    transition: color 0.3s;
}

.footer a:hover {
    color: #ffa366;
    text-decoration: underline;
}

.result-info {
    margin-top: 20px;
    padding: 15px;
    background: #2a2a2a;
    border-radius: 4px;
    border-left: 4px solid #ff8c42;
}

.result-info p {
    color: #c9c9c9;
    margin-bottom: 10px;
}

.result-info strong {
    color: #ff8c42;
}

.info-format {
    font-family: 'Courier New', monospace;
    background: #1a1a1a;
    padding: 10px;
    border-radius: 4px;
    color: #ffa366;
    margin: 10px 0;
    font-size: 0.9em;
}

.info-list {
    list-style: none;
    margin: 10px 0;
    padding-left: 10px;
}

.info-list li {
    color: #c9c9c9;
    margin: 8px 0;
    font-size: 0.9em;
}

.info-label {
    color: #ff8c42;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}
