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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f0f2f5;
    color: #1c1e21;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

header {
    text-align: center;
    margin-bottom: 32px;
}

h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.tabs {
    display: flex;
    gap: 4px;
    background: #e4e6eb;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 24px;
}

.tab {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: #65676b;
    cursor: pointer;
    transition: all 0.2s;
}

.tab.active {
    background: #fff;
    color: #1a1a1a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.tab:hover:not(.active) {
    color: #1a1a1a;
}

.tab-content {
    /* nothing special */
}

.hidden {
    display: none !important;
}

.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.search-box input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.search-box input:focus {
    border-color: #1877f2;
}

.search-box button {
    padding: 12px 24px;
    background: #1877f2;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.search-box button:hover {
    background: #166fe5;
}

.search-box button:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
}

.loader {
    text-align: center;
    padding: 40px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e4e6eb;
    border-top-color: #1877f2;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#result, #kkt_result, #fn_result {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.card-header {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1a1a1a;
}

.kkt-results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.kkt-card {
    border: 1px solid #e4e6eb;
    border-radius: 8px;
    padding: 16px;
}

.kkt-card.model-found {
    border-left: 4px solid #31a24c;
}

.kkt-card.not-found {
    border-left: 4px solid #f0ad4e;
}

.card-field {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.card-field:last-child {
    margin-bottom: 0;
}

.field-label {
    color: #65676b;
    min-width: 140px;
}

.field-value {
    color: #1a1a1a;
    font-weight: 500;
}

.status-registered { color: #31a24c; font-weight: 600; }
.status-used { color: #f0ad4e; font-weight: 600; }
.status-removed { color: #dc3545; font-weight: 600; }
.status-unknown { color: #65676b; }

.fn-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.warning {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 12px;
    color: #856404;
    font-size: 14px;
    font-weight: 600;
}

.not-found {
    text-align: center;
    color: #65676b;
    font-size: 15px;
    padding: 20px;
}

.api-error {
    text-align: center;
    color: #dc3545;
    font-size: 15px;
    padding: 20px;
}

footer {
    text-align: center;
    margin-top: 32px;
    font-size: 13px;
    color: #a0a0a0;
}

footer a {
    color: #1877f2;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
