* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 40%, #eef2ff 100%);
    color: #111827;
}

.page {
    max-width: 1100px;
    margin: 24px auto 40px;
    padding: 0 16px;
}

.header h1 {
    margin: 0;
    font-size: 2.2rem;
    font-weight: 650;
}

.subtitle {
    margin: 6px 0 2px;
    color: #4b5563;
}

.meta {
    margin: 0;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Generic card block */
.card {
    position: relative;
    background: #ffffff;
    border-radius: 12px;
    padding: 18px 20px 20px;
    margin-top: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    border-left: 4px solid #2563eb;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover {
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    transform: translateY(-2px);
}

.section-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 600;
}

/* Table styling */
#apiTable {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

#apiTable th,
#apiTable td {
    border-bottom: 1px solid #e5e7eb;
    padding: 10px 8px;
    vertical-align: top;
}

#apiTable thead th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
}

/* Row hover highlighting */
#apiTable tbody tr {
    transition: background-color 0.16s ease;
}

#apiTable tbody tr:hover {
    background-color: #f3f4ff;
}

/* Labels & inputs */
label {
    display: inline-block;
    font-size: 0.85rem;
    color: #4b5563;
    margin-top: 4px;
}

input[type="text"] {
    display: block;
    margin: 2px 0 4px;
    padding: 7px 9px;
    border-radius: 6px;
    border: 1px solid #cbd5f5;
    font-size: 0.9rem;
    min-width: 200px;
    background-color: #f9fafb;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #2563eb;
    background-color: #ffffff;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

/* Buttons */
button {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 999px; /* pill shape */
    border: none;
    cursor: pointer;
    background: #2563eb;
    color: #ffffff;
    font-weight: 500;
    transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.35);
}

button:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.4);
}

button:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(37, 99, 235, 0.3);
}

/* Results console */
#results {
    background: #020617;
    color: #e5e7eb;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: "Fira Code", "Consolas", monospace;
    font-size: 0.85rem;
    overflow-x: auto;
    min-height: 80px;
    border: 1px solid #111827;
}

/* Footer */
.footer {
    margin-top: 10px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.8rem;
}
