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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    min-height: 100vh;
}

main {
    max-width: 900px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
}

.scan-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.scan-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-group {
    display: flex;
    gap: 0.5rem;
}

#targetInput {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
}

#targetInput:focus {
    outline: none;
    border-color: #4285f4;
}

#scanButton {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

#scanButton:hover {
    background: #3367d6;
}

#scanButton:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.advanced-options label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
}

.spinner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: #666;
    font-size: 0.9rem;
}

.spinner-icon {
    width: 20px;
    height: 20px;
    border: 3px solid #e0e0e0;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.logs-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.toggle-logs-btn {
    align-self: flex-start;
    background: none;
    border: 1px solid #ccc;
    color: #666;
    padding: 0.3rem 0.75rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
}

.toggle-logs-btn:hover {
    border-color: #999;
    color: #333;
}

.logs-output {
    background: #f5f5f5;
    padding: 0.75rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.8rem;
    line-height: 1.5;
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.results-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1rem;
}

.scan-results {
    margin: 0;
    white-space: pre-wrap;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
}

.error-section {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 6px;
    padding: 1rem;
    color: #dc2626;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .input-group {
        flex-direction: column;
    }
}
